Git状态不起作用:无法查找,无法读取

时间:2014-07-02 13:28:03

标签: git

我无法执行" git status"在我的git存储库中:

$ git status
error: unable to find c67dd216884715cde72d4bc8e02d994158e667ab
fatal: unable to read c67dd216884715cde72d4bc8e02d994158e667ab

以下是git fsck的结果:

git fsck
Checking object directories: 100% (256/256), done.
error: packed 244aac07221f6b3879b5f8687188df9366584e43 from .git/objects/pack/pack-d78b23c7762986308cee4a06a9900256a99c466f.pack is corrupt
error: packed 8338db360fe0b44580f81a56f552598cb1843986 from .git/objects/pack/pack-d78b23c7762986308cee4a06a9900256a99c466f.pack is corrupt
Checking objects: 100% (651/651), done.
broken link from    tree 6351bcd76c1c433cdb8b4d5c79545e2fd6fac734
              to    blob 4be99b665f1daddcbc5bc7784b98b1e3fd289809
broken link from    tree 0006ad311fd9a7c3abd9d60aa01b47be59e8b25b
              to    blob c67dd216884715cde72d4bc8e02d994158e667ab
missing blob 4be99b665f1daddcbc5bc7784b98b1e3fd289809
dangling tree 18dd2ee065de1df8b071ef51cd9e871c91795e7f
missing blob c67dd216884715cde72d4bc8e02d994158e667ab

怎么办?

感谢您的帮助

[编辑]我通过执行我的文件夹的rm -rf并重做git clone解决了这个问题。感谢您的帮助[/ EDIT]

0 个答案:

没有答案