I'm having big problems with a git repository on my local machine.
I modified a file, ran git status
and the file appeared as modified. I added the file using git add .
and it worked as usual. But when i was about to commit the changes, i got the following error:
error: garbage at end of loose object 'e91ce852822d32e380ed7ddd04c93066e3c600ea'
fatal: object e91ce852822d32e380ed7ddd04c93066e3c600ea is corrupted
By running git cat-file -t e91ce852822d32e380ed7ddd04c93066e3c600ea
, i can see that the object is a tree.
I've seen several solutions on how to repair a corrupt blob or commit, but this is a tree, and I can't find an answer on what could have went wrong, or how to fix it.
Any help appreciated :)