1

enter image description hereI am running into a GIT issues I have never seen before and am looking for help at this point. Whenever I try and commit 1 specific file it fails with the error above.

I have tried removing the file from the directory, copying it, deleting the original and putting the new file back in.

It only seems to be happening for this one file and I am unsure why.

4
  • Here are some things you can check stackoverflow.com/questions/26097568/… Commented Jan 22, 2021 at 17:30
  • The EINVAL error is rather mysterious. What OS are you using? (Based on pathnames, it looks like some Windows variant. I don't use Windows myself but it would make sense to look for what Windows file systems return EINVAL, and why.) Commented Jan 23, 2021 at 1:10
  • @torek It is windows 10 Commented Jan 25, 2021 at 12:54
  • Hm, the main source of EINVAL on write on Windows 10 seems to be a file that exceeds 4 GB in size. Is that one file super-huge? (The EINVAL would occur during the zlib compression phase, so it would have to compress to a file that exceeds the 4 GiB limit.) Commented Jan 25, 2021 at 23:39

2 Answers 2

0

This is likely a permissions issue with the file.

Sign up to request clarification or add additional context in comments.

1 Comment

All other files in that directory work, but this file doesnt seem too which I created and saved myself, but I will double check.
0

Try erasing the .git/objects/*** (the one file only) and then commiting again

3 Comments

Not the entire database... just that one file!
I looked in that directory but was unsure of which one to delete since its also like 1a, 2f, etc EDIT: Oh wait I see now from the error
I recomend saving the file elsewhere as backup just in case. It is a good practice.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.