【发布时间】:2013-02-20 20:36:04
【问题描述】:
当我尝试运行时
git push origin master --force
我刚刚得到
Counting objects: 2649, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (1280/1280), done.
error: RPC failed; result=22, HTTP code = 413 | 116 KiB/s
fatal: The remote end hung up unexpectedly
Writing objects: 100% (2504/2504), 449.61 MiB | 4.19 MiB/s, done.
Total 2504 (delta 1309), reused 2242 (delta 1216)
fatal: The remote end hung up unexpectedly
Everything up-to-date
这与不安全有关吗?我尝试在Fatal: The remote end hung up unexpectedly 的答案中创建一个公钥并再次运行它,但它仍然不起作用。我实际上没有使用密钥吗?如果是这样,我该如何使用它?
【问题讨论】:
-
请显示
git remote -v的输出 -
git config http.postBuffer 524288000 # 它对我有用
-
如果您收到
error: could not lock config file .git/config: No such file or directory,请参阅stackoverflow.com/a/32329453/827525 -
我无法获得任何建议的解决方案。然后我尝试了 GitKraken。它是少数几个不使用 git.exe 的 Git 程序之一。 GitKraken 可以做到。在 GitKraken 推送存储库后,我可以切换回 git.exe 并同步,没有任何问题。