你好,我有下面的git-fsck错误,它不能被git-gc清理,即使在--侵略性模式下也是如此。接下来我该怎么做才能修复这个存储库错误?
$ git-fsck
bad sha1 file: .git/objects/55/tmp_obj_a07724发布于 2008-09-02 16:17:21
遗憾的是,这不是一个简单的答案。但这可能会有所帮助:
Recovering from repository corruption (摘自Git的用户手册)。
发布于 2008-09-04 20:44:10
呃..。tmp_obj_a07724可疑地看起来像是一个剩余的临时文件:)
如果您只是将其从.git目录中移出(在备份了整个内容之后),会发生什么情况?
发布于 2018-03-21 19:10:38
来自man git-fsck
Any corrupt objects you will have to find in backups or other archives
(i.e., you can just remove them and do an rsync with some other site in
the hopes that somebody else has the object you have corrupted).https://stackoverflow.com/questions/39475
复制相似问题