如何修复已删除的git commit分支或引用?

时间:2011-11-13 21:17:43

标签: git git-push git-pull

好的,我对git有点问题。不小心似乎,我删除了一个git commit branch / refs /或者其他东西。所以....每次我尝试使用“git push”时总会出现如下错误:

Counting objects: 62, done.
error: unable to find 917c9bbd15d005484257180c1de94a479d7a7a43
Delta compression using up to 4 threads.
Compressing objects: 100% (43/43), done.
fatal: unable to read 917c9bbd15d005484257180c1de94a479d7a7a43
fatal: early EOF
error: failed to push some refs to 'slk@busaway.org:studentreg.git'

如何解决这个问题?我尝试了“git pull / git fsck /”,到目前为止还没有工作......>。<“

提前致谢^^

1 个答案:

答案 0 :(得分:1)

尝试:

git config --add core.compression -1

然后再推,应该解决。