当我运行git gc时,我得到以下输出:
error: Could not read bf493234ee6eb0ca12573136510e35d12f1adc51
Counting objects: 885373, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (150591/150591), done.
Writing objects: 100% (885373/885373), done.
Total 885373 (delta 480155), reused 885373 (delta 480155)
Removing duplicate objects: 100% (256/256), done.
error: Could not read bf493234ee6eb0ca12573136510e35d12f1adc51
Checking connectivity: 908348, done.但是,运行git fsck只会出现一些悬空对象,没有检测到损坏。类似地,grep -r "bf49" ~/git/.git/logs也不会显示任何内容。
我如何跟踪引用这个不存在的对象的内容,为什么git fsck找不到它?
发布于 2015-04-22 17:23:24
在git fsck之前执行git gc --aggressive --prune=now。
这将清除所有悬而未决的数据。完成后,再次运行fsck。
https://stackoverflow.com/questions/29782354
复制相似问题