如何删除“致命:松散的对象”? [英] How to remove "fatal: loose object"?
问题描述
我的一个克隆版本库是从git fsck中获得的
$ b
fatal:loose object 40bda4e3b79c3d7bf598df31d9e68470f97a3f79(保存在.git / objects / 40 / bda4e3b79c3d7bf598df31d9e68470f97a3f79)已损坏
我还有另一份fsck的干净版本。
我已经尝试对包含致命命令的目录/子目录和
进行分区。问题仍然存在。
我真的不关心任何特定的文件,我只希望存储库
干净地结帐。我该怎么办?
注意:远程仓库托管在github上。
One of my cloned repositories is getting this from a git fsck
fatal: loose object 40bda4e3b79c3d7bf598df31d9e68470f97a3f79 (stored in .git/objects/40/bda4e3b79c3d7bf598df31d9e68470f97a3f79) is corrupt
I've got another copy of it that fsck's cleanly.
I've tried nuking the directory/subdirectories that contain the fatal one, and recloning it. The problem continues.
I really don't care about any particular file, I just want the repository to checkout cleanly. What do I do?
Note: the remote repository is hosted on github.
Easy answer: move the old repo away and reclone. If you have stuff in the old repo you want to preserve, there are ways of getting them, but first get a good repo.
这篇关于如何删除“致命:松散的对象”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!