如何删除“致命:松散的对象”? [英] How to remove "fatal: loose object"?

查看:213
本文介绍了如何删除“致命:松散的对象”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一个克隆版本库是从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屋!

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