Git错误:无法找到 [英] Git Error: unable to find

查看:368
本文介绍了Git错误:无法找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我执行 git pull origin master 时,出现以下错误。

 错误:无法在http://myweb.com/myapp.git下找到a47058d09b4ca436d65609758a9dba52235a75bd 
无法获取所需的blob a47058d09b4ca436d65609758a9dba52235a75bd
,同时处理提交041d57dd5bed9d6c75fe7cce944b2b2904ae3a62。
错误:提取失败。

直到几分钟前,一切正常。我没有做任何平凡的事情。我一直在做我平常的提交和拉,现在我突然得到这个错误。

这个错误是什么意思?解决/纠正这个错误的步骤是什么?

解决方案

像亚当说的那样,恢复对象frmo另一个存储库/克隆。 / p>

不要忘记考虑包装。所以,一个更通用的过程是这样的:



在'完整'git数据库上

  git cat-file -p a47058d09b4ca436d65609758a9dba52235a75bd> tempfile 

和在接收端

  git hash-object -w tempfile 


I get the following error when I do a git pull origin master.

error: Unable to find a47058d09b4ca436d65609758a9dba52235a75bd under http://myweb.com/myapp.git
Cannot obtain needed blob a47058d09b4ca436d65609758a9dba52235a75bd
while processing commit 041d57dd5bed9d6c75fe7cce944b2b2904ae3a62.
error: Fetch failed.

Everything has been working fine up until a few minutes ago. I did not do anything out of hte ordinary. I've been doing my usual commit push and pull, and now I'm suddenly getting this error.

What does this error mean? What are the steps to troubleshooting/correcting this error?

解决方案

Like Adam said, recover the object frmo another repository/clone.

Don't forget to take into account packs. So, a more generalized procedure is this:

On a 'complete' git database

git cat-file -p a47058d09b4ca436d65609758a9dba52235a75bd > tempfile

and on the receiving end

git hash-object -w tempfile

这篇关于Git错误:无法找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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