问题
I am getting
Git error: inflate: data stream error (unknown compression method) fatal: failed to read object <hach>: Invalid argument error
when I try do $ git status. How can I fix it?
回答1:
- Do a
git fsck --full - Did it report a corrupted file?
- If so delete the file, go back to step #1.
- Do
del .git/index - Do
git reset
回答2:
I think it happened because maybe your computer or files were corrupted.
First back up your .git folder, then use git fsck --full command to check your file system then delete corrupt files and check it again until your problem disappear
来源:https://stackoverflow.com/questions/41741683/git-error-inflate-data-stream-error-unknown-compression-method