Git – 损坏的对象?

栏目: 编程工具 · 发布时间: 7年前

内容简介:如果您正在寻找有关如何从此恢复的建议,请参阅此主题:http://stackoverflow.com/questions/5736692/git-corrupted-object

我的房子刚刚遭到停电,现在我的git回购(我发生时承诺)报告:

user@localhost$git fsck
fatal: object 192e0282d23863ec80375a77011012ef8cb80f77 is corrupted

我无法提交,因为这个错误.拉扯和抓取似乎工作正常.

user@localhost$git commit
error: unable to find 192e0282d23863ec80375a77011012ef8cb80f77
fatal: 192e0282d23863ec80375a77011012ef8cb80f77 is not a valid object

我尝试重新设置,但没有做任何事情

git reset HEAD 192e0282d23863ec80375a77011012ef8cb80f77
git gc

我该如何解决?

更新:文件仍然很好,所以我只是克隆了一个新的repo实例,并手动移动文件(很高兴这不是唯一的repo实例!).但是,我保留了破损的回购,以便我可以尝试在这里发布的修补程序,以防下次发生.

如果您正在寻找有关如何从此恢复的建议,请参阅此主题: How do you restore a corrupted object in a git repository (for newbies)?

http://stackoverflow.com/questions/5736692/git-corrupted-object


以上所述就是小编给大家介绍的《Git – 损坏的对象?》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Letting Go of the Words

Letting Go of the Words

Janice (Ginny) Redish / Morgan Kaufmann / 2007-06-11 / USD 49.95

"Redish has done her homework and created a thorough overview of the issues in writing for the Web. Ironically, I must recommend that you read her every word so that you can find out why your customer......一起来看看 《Letting Go of the Words》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

html转js在线工具
html转js在线工具

html转js在线工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试