Git拉,致命:松散的物体 [英] Git pull, fatal: loose object

查看:203
本文介绍了Git拉,致命:松散的物体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的同事试图从我们的主人那里做一个 git pull 。他得到了这个错误:

  $ git pull 
致命:松散对象f7630cc30248df1e19bcb40c9de1b60b71cdfce1(存储在./objects/f7/中630cc30248df1e19bcb40c9de1b60b71cdfce1)已损坏
fatal:远端意外挂断

幸运的是,我的回购似乎不要腐败,我确实有一份 f7630cc30248df1e19bcb40c9de1b60b71cdfce1 的副本。但我无法弄清楚他需要做什么。我们试着拿着我的拷贝&把它放在他的 .git / objects / f7 / 目录中,但错误信息保持不变。



是它应该只是简单地洗牌文件,或者我们需要做些别的事情吗? 解决方案

该文件是否存在主人宽松吗?如果是这样,它在那里有效或腐败?是的,仅仅将文件的好版本复制到对象目录就足够了。


My colleague tried to do a git pull from our master. He got this error:

$ git pull
fatal: loose object f7630cc30248df1e19bcb40c9de1b60b71cdfce1 (stored in ./objects/f7/630cc30248df1e19bcb40c9de1b60b71cdfce1) is corrupt
fatal: The remote end hung up unexpectedly

Luckily, my repo seems not to be corrupt, and I do have a copy of f7630cc30248df1e19bcb40c9de1b60b71cdfce1. But I can't figure out what he needs to do with it. We tried just taking my copy & putting it in his .git/objects/f7/ directory, but the error message stays the same.

Is it supposed to be as simple as just shuffling files around, or do we need to do something else?

解决方案

Does that file exist loose on the master? If so, is it valid or corrupt there? Yes, it should be sufficient just to copy a good version of the file into the objects directory.

这篇关于Git拉,致命:松散的物体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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