【发布时间】:2017-06-14 12:21:55
【问题描述】:
$ git fsck --full
error: inflate: data stream error (incorrect header check)
error: unable to unpack 06c147f2771e280dfb4758c9a83b94346993d172 header
error: inflate: data stream error (incorrect header check)
fatal: loose object 06c147f2771e280dfb4758c9a83b94346993d172 (stored in .git/objects/06/c147f2771e280dfb4758c9a83b94346993d172) is corrupt
另外,试试这个,并删除所有损坏的对象。删除对象后我写了这个命令,
$ git reset --hard
error: unable to read sha1 file of 3X/3X.Core/Resources/Resource.Designer.cs (d46f74436ae02ec61a659a8a487aee5747e2feda)
error: unable to read sha1 file of 3X/3X.Core/Resources/Resource.resx (63342162564404ccae4917489dc78ebb65075f8a)
error: unable to read sha1 file of 3X/3X.Web/Views/Job/ConfirmationAdvice.cshtml (ff39e42f5cf0e0703bd9dfe84a4b746ff91eea40)
error: unable to read sha1 file of 3X/3X.Web/Views/Job/Create.cshtml (3a97827faac6c62fd24f347dd0b0951c27c03751)
error: unable to read sha1 file of 3X/3X.Web/Views/Job/DataEntry.cshtml (89f381bafaeff53eeaf64a26d8c9608e9e86b6a1)
error: unable to read sha1 file of 3X/3X.Web/wwwroot/js/viewjs/Job/create.js (1b62c618c31add2ca28d107c1a49604492409ecf)
fatal: Could not reset index file to revision 'HEAD'.
出现上述错误
【问题讨论】:
-
尝试从命令行执行
-
@DaniyalSyed 我试过了,但没用
-
你在命令行遇到什么错误
-
@DaniyalSyed --> $ git fsck --full error: inflate: data stream error (incorrect header check) error: unable to unpack 06c147f2771e280dfb4758c9a83b94346993d172 header error: inflate: data stream error (incorrect header check)致命:松散对象 06c147f2771e280dfb4758c9a83b94346993d172(存储在 .git/objects/06/c147f2771e280dfb4758c9a83b94346993d172 中)已损坏 -------------------------------------------- -------------------------------------------------- ---------我删除了所有这些损坏的对象并使用“$ git reset --hard”,这将返回“致命:无法将索引文件重置为修订版'HEAD'。”