since nothing was really working, i gave in and fired rm -rf .git
maybe a bit drastic and i am loosing the whole commit history, but i have to finish the project. In this state i wasn't able to commit anything. I saved some copies and will have a deeper look trying to understand what has happpened
git checkout 5b001a2
is working, but the error persists
git status
error: inflate: data stream error (incorrect header check)
fatal: loose object a3ee52c77080e851a4d4b2f1eea34246e85cb949 (stored in .git/objects/a3/ee52c77080e851a4d4b2f1eea34246e85cb949) is corrupt
Hi all,
i am not really sure when and what kind of BS i've done, but my local repository is broken.
git status
error: inflate: data stream error (incorrect header check)
fatal: loose object a3ee52c77080e851a4d4b2f1eea34246e85cb949 (stored in .git/objects/a3/ee52c77080e851a4d4b2f1eea34246e85cb949) is corrupt
I've tried to verify the connectivity and validity of the objects with git fsck --full
but doesn't really helps me.
Checking object directories: 100% (256/256), done.
error: inflate: data stream error (incorrect header check)
error: unable to unpack a3ee52c77080e851a4d4b2f1eea34246e85cb949 header
error: inflate: data stream error (incorrect header check)
error: inflate: data stream error (incorrect header check)
fatal: loose object a3ee52c77080e851a4d4b2f1eea34246e85cb949 (stored in .git/objects/a3/ee52c77080e851a4d4b2f1eea34246e85cb949) is corrupt
Next i tried git log
as recommended on Stackoverflow
git log --oneline --decorate --all |head -n 8
4efe042 (HEAD, master) deleted
5b001a2 store and read back data working
So, i really don't know what to do or where to go from here. The suggestions given in the thread i've linked above, do not help also.
Thank you in advance for your help!
I would guess you looked at these, too, but here are two more threads on this issue with different approaches that worked:
http://stackoverflow.com/questions/4254389/git-corrupt-loose-object
http://stackoverflow.com/questions/12571557/fixing-a-corrupt-loose-object-as-a-commit-in-git