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?
I saw this question. And tryed.. I do $ git fsck --full, then delete error file, then when I do $ git fsck, I get "error: inflate: data stream error (unknown compression method) error: unable to unpack a6cbf8ee9712f58427bba10bf816046315e2f506 header error: inflate: data stream error (unknown compression method) fatal: loose object a6cbf8ee9712f58427bba10bf816046315e2f506 (stored in .git/objects/a6/cbf8ee9712f58427bba10bf816046315e2f506) is corrupt"
Sign up to request clarification or add additional context in comments.
Comments
7
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
git status? Can you try a separate clone?