如何修复GIT错误:切换分支时对象文件为空

如何修复GIT错误:切换分支时对象文件为空,git,Git,我在分公司master。当签出到zc分支时,我被告知对象文件为空 $ git branch demo develop * master zc $ git checkout zc error: unable to find 00d2a5741d54116a156e477093c3fcf30b24c6b3 error: unable to read sha1 file of doc/build/html/_sources/props/buyhp.txt (00d2a5741d5411

我在分公司
master
。当签出到
zc
分支时,我被告知
对象文件为空

$ git branch 
  demo
  develop
* master
  zc

$ git checkout zc
error: unable to find 00d2a5741d54116a156e477093c3fcf30b24c6b3
error: unable to read sha1 file of doc/build/html/_sources/props/buyhp.txt (00d2a5741d54116a156e477093c3fcf30b24c6b3)
error: object file .git/objects/ee/4fc9118d213089e959b1625405c4b835cd4af7 is empty
error: unable to find ee4fc9118d213089e959b1625405c4b835cd4af7
error: object file .git/objects/ee/4fc9118d213089e959b1625405c4b835cd4af7 is empty
fatal: loose object ee4fc9118d213089e959b1625405c4b835cd4af7 (stored in .git/objects/ee/4fc9118d213089e959b1625405c4b835cd4af7) is corrupt

您是否编辑了doc/build/html/_sources/props/buyhp.txt或对其进行了更改?您是否更改了其他内容?如果您没有在.git下编辑某些文件,您的硬盘可能有问题?运行
git fsck
,您的repo已损坏。另外,请检查您的HD Health可能的副本。您是否编辑了doc/build/html/_sources/props/buyhp.txt或对其进行了更改?您是否更改了其他内容?如果您没有在.git下编辑某些文件,您的硬盘可能有问题?运行
git fsck
,您的repo已损坏。同时检查您的HD Health是否存在可能的副本