Skip to content

Instantly share code, notes, and snippets.

@sebastianbachmann
Last active January 12, 2016 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastianbachmann/86ebb6dd5a0270e23725 to your computer and use it in GitHub Desktop.
Save sebastianbachmann/86ebb6dd5a0270e23725 to your computer and use it in GitHub Desktop.
Broken Repository

Update

since nothing was really working, i gave in and fired rm -rf .gitmaybe 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 5b001a2is 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!

@sebastianbachmann
Copy link
Author

danke für die Links @Pfenya da schau ich morgen mal drüber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment