Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git错误:无法找到_Git - Fatal编程技术网

Git错误:无法找到

Git错误:无法找到,git,Git,当我执行git pull origin master时,我得到以下错误 error: Unable to find a47058d09b4ca436d65609758a9dba52235a75bd under http://myweb.com/myapp.git Cannot obtain needed blob a47058d09b4ca436d65609758a9dba52235a75bd while processing commit 041d57dd5bed9d6c75fe7cce944

当我执行
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.
直到几分钟前,一切都很顺利。我没有做任何不寻常的事。我一直在做我惯常的提交推拉,现在我突然得到这个错误


这个错误意味着什么?故障排除/更正此错误的步骤是什么?

从您的目录(
.git/objects
)和其他处理此repo克隆的人员复制对象。一个物体被击中,所以这应该可以修复它


以下是有关移动对象的更多信息:

如Adam所说,从另一个存储库/克隆中恢复对象

别忘了考虑包装。因此,更一般化的程序是:

在“完整”git数据库上

git cat-file -p a47058d09b4ca436d65609758a9dba52235a75bd > tempfile
在接收端

git hash-object -w tempfile

这是一个已知的掩盖其他问题的问题。例如,您是否有足够的磁盘用于存储库?如何检查回购协议上的磁盘空间?我有一个ubuntu linux服务器。服务器的容量为82%。我可以为我的其他项目推拉其他存储库。这有助于诊断问题吗?您是否可以直接访问远程存储库(origin)?通过直接访问,这是否意味着SSH可以访问/var/lib/git/myapp.git?如果是,那么是的。我可以使用shell命令来操作裸存储库中的文件。这似乎是可行的,但我多次收到这样的错误。有没有办法我需要恢复多少这样的对象?