无法推送git提交

3
我正在尝试向我的github代码库推送提交记录。
在使用HTTPS时运行git push -ff会返回以下信息:
(我使用-ff标志是因为我正在修正一个无效的提交)
C:\Users\mooman\Dropbox\Project\Workspace\MilkBukkit [master]> git push -ff
Counting objects: 28390, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7515/7515), done.
Writing objects: 100% (28390/28390), 4.28 MiB, done.
Total 28390 (delta 13498), reused 28182 (delta 13449)
efrror: RPC failed; result=55, HTTP code = 0
atal: The remote end hung up unexpectedly
fatal: recursion detected in die handler
Everything up-to-date

我已经运行了git gcgit fsck,但问题仍然存在。

使用HTTP时卡在大约10%,但我使用git config --global http.postBuffer 524288000调整了缓冲区,现在产生了上面显示的结果。

尝试使用SSH运行:git remote set-url origin https://github.com/mooman219/CowCode.git,结果如下:

Warning: Permanently added 'github.com,204.232.175.90' (RSA) to the list of known hosts.
Counting objects: 28390, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7515/7515), done.
Writing objects: 27% (28390/28390)

但是它在这之后就停止了。

我还尝试了将git协议的端口9418进行端口转发,并禁用了任何防火墙,但无论是SSH还是HTTP的结果都是相同的。


有使用“-ff”标志的原因吗?“-f”是一个有效的标志,但除非您已经知道在这种情况下需要使用它,否则通常不建议使用它...我怀疑这不是问题所在,只是好奇。 - cjc343
我需要使用-ff标志,因为我的本地分支落后于远程分支,因为我需要修复一个无效的提交。 - Joe C
只是确认您是否有意强制执行。-f应该足够了,但是-ff也可以达到同样的效果。git merge有一个与git push-f标志非常不同的-ff标志,因此我感到困惑并提出了问题。 - cjc343
2个回答

4

GitHub 现在似乎无法访问(你可以通过https://status.github.com/查看它们何时恢复)。等他们击退了任何外星空间虫子后再试一次。


3

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接