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.

bryane92
  • 31
  • 1
  • 5
  • Here are some things you can check https://stackoverflow.com/questions/26097568/git-pull-error-unable-to-create-file-invalid-argument/26097902 – Dennis Jan 22 '21 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.) – torek Jan 23 '21 at 01:10
  • @torek It is windows 10 – bryane92 Jan 25 '21 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.) – torek Jan 25 '21 at 23:39

2 Answers2

1

This is likely a permissions issue with the file.

Pytth
  • 4,008
  • 24
  • 29
  • All other files in that directory work, but this file doesnt seem too which I created and saved myself, but I will double check. – bryane92 Jan 22 '21 at 18:03
0

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

esantix
  • 323
  • 5
  • 26