git致命错误致命:无法读取斑点对象724b6f6b35fd871a84ab1742099de2c3671d7899 [英] git fatal error fatal: unable to read blob object 724b6f6b35fd871a84ab1742099de2c3671d7899

查看:104
本文介绍了git致命错误致命:无法读取斑点对象724b6f6b35fd871a84ab1742099de2c3671d7899的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个致命的git错误,尝试和git merge时无法解决:

fatal: unable to read blob object 724b6f6b35fd871a84ab1742099de2c3671d7899

类似的问题是此处,但区别在于他们无论如何都找不到该blob,而我却可以:

./git-find-blob 724b6f6b35fd871a84ab1742099de2c3671d7899

收益

b937291 foo
c616ee2 bar
46c2720 whatever
e48c437 something
057e1b0 ........

其中git-find-blob是关于另一个SO问题的程序,此处

git-find-blob找到许多提交.

有什么想法可以解决此问题吗?我对此一无所知!

非常感谢:).

解决方案

该错误告诉您找不到文件系统上该blob对象的源,这可能是由于某种文件系统或存储库损坏造成的. /p>

git-find-blob正在找到该blob的引用,而不是该blob本身.

git fsck将检查您的存储库,但可能只会报告相同的错误.

ls -al .git/objects/72/4b6f6b35fd871a84ab1742099de2c3671d7899来检查它是否存在以及是否已经弄乱了权限,否则请按照您选择的一组说明从存储库损坏中恢复;最好,如果一切顺利,请重新cloning?

I have a fatal git error that I can't resolve when I try and git merge:

fatal: unable to read blob object 724b6f6b35fd871a84ab1742099de2c3671d7899

A similar question is here but the difference is that they can't find the blob anyway whereas I can:

./git-find-blob 724b6f6b35fd871a84ab1742099de2c3671d7899

yields

b937291 foo
c616ee2 bar
46c2720 whatever
e48c437 something
057e1b0 ........

where git-find-blob was a program on contributed to another SO question here

git-find-blob finds many commits.

Any ideas how I can fix this? I'm clueless on this one!

Thanks very much :).

解决方案

The error is telling you that it can't find a source for that blob object on your filesystem, presumably due to filesystem or repository corruption of some kind.

git-find-blob is finding references to that blob, not the blob itself.

git fsck will check your repository, but will probably just report the same error.

ls -al .git/objects/72/4b6f6b35fd871a84ab1742099de2c3671d7899 to check if it's there at all and if it has messed up permissions, otherwise follow a set of instructions of your choice for recovering from repository corruption; preferably, if everything was pushed, re-cloning?

这篇关于git致命错误致命:无法读取斑点对象724b6f6b35fd871a84ab1742099de2c3671d7899的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆