【问题标题】:How to fix a deleted git commit branch or refs?如何修复已删除的 git commit 分支或 refs?
【发布时间】:2011-12-28 05:25:54
【问题描述】:

好的,我在 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 /”,但到目前为止没有一个工作......>。

提前致谢^^

【问题讨论】:

  • or something 不会削减它。与另一个 git repo 比较您在 .git 文件夹下缺少的文件夹
  • 看起来你删除了一个 git 对象……

标签: git git-push git-pull


【解决方案1】:

试试看:

git config --add core.compression -1

再推,应该可以解决。

【讨论】:

    猜你喜欢
    • 2021-10-17
    • 2021-07-20
    • 2020-09-14
    • 1970-01-01
    • 2017-06-05
    • 2011-07-29
    • 1970-01-01
    • 2013-05-23
    • 2015-09-09
    相关资源
    最近更新 更多