Git error: inflate: data stream error (unknown compression method)

走远了吗. 提交于 2019-12-03 14:30:12

问题


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:


  1. Do a git fsck --full
  2. Did it report a corrupted file?
  3. If so delete the file, go back to step #1.
  4. Do del .git/index
  5. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!