corruption - Regenerating a Corrupted Git Repo from Log Files? -


i hit random bluescreen on windows , when restarted, git repo corrupted. it's local-only repo , backups several weeks old. i've tried number of different things (documented below) working, no avail. re-cloning local repo yields same corruption original. can't commit new repo.

however, git log , git show still appear work perfectly. there way can recreate new git repo output of these commands?


what have tried working again:

git status not work:

> git status --long -v error: inflate: data stream error (incorrect header check) fatal: failed read object 143fd2fe59980f9b4aec9b1b696e4d2ab5bd0465:  > git fsck --full error: inflate: data stream error (incorrect header check) error: unable unpack 143fd2fe59980f9b4aec9b1b696e4d2ab5bd0465 header error: inflate: data stream error (incorrect header check) fatal: loose object 143fd2fe59980f9b4aec9b1b696e4d2ab5bd0465 (stored in .git/objects/14/3fd2fe59980f9b4aec9b1b696e4d2ab5bd0465) corrupt > mv .git/objects/14/3fd2fe59980f9b4aec9b1b696e4d2ab5bd0465 .git/objects/14/3fd2fe59980f9b4aec9b1b696e4d2ab5bd0465.bak > git fsck --full checking object directories: 100% (256/256), done. checking objects: 100% (56357/56357), done. broken link    tree 85532cceff0ea16036538bfb47adc1f1ecdb1009                  tree 143fd2fe59980f9b4aec9b1b696e4d2ab5bd0465 ... missing tree 143fd2fe59980f9b4aec9b1b696e4d2ab5bd0465 ... 

i've tried following, did not help:

> git checkout 444ea90502abc17eb2e55365e550a2e0dc95af61 error: inflate: data stream error (incorrect header check) fatal: failed read object 143fd2fe59980f9b4aec9b1b696e4d2ab5bd0465: invalid argument > git reset --hard error: inflate: data stream error (incorrect header check) fatal: failed read object 143fd2fe59980f9b4aec9b1b696e4d2ab5bd0465: invalid argument 


Comments