小编use*_*704的帖子

由于提交损坏,Git无法获取

我们其中一个人推动了一个似乎完整并在他的计算机上工作的提交.从那时起,其他任何计算机都无法从远程存储库中获取更改.每个人都得到的错误是:

git.exe fetch -v --progress  "origin"

POST git-upload-pack (gzip 1407 to 775 bytes)
remote: error: Could not read a75720ce47ae8dcc1d0b4c09fcb7d6f70efa390b
remote: fatal: revision walk setup failed
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
git did not exit cleanly (exit code 128) (14368 ms @ 26/10/2014 11:49:05)
Run Code Online (Sandbox Code Playgroud)

无法读取的SHA(a75720 ...)是所述提交的SHA.

我们尝试了各种各样的东西,但似乎没有任何效果.运行git fsck不会将提交显示为悬空,并且在远程服务器中,没有分支指向提交.

从提交中恢复数据不是优先事项,但让系统再次运行是.

有关如何删除/修复损坏的提交的任何建议?非常感谢帮助.

谢谢!

git commit fetch

5
推荐指数
1
解决办法
2271
查看次数

标签 统计

commit ×1

fetch ×1

git ×1