Git推送错误:RPC失败; 结果= 56,HTTP代码= 200致命:远程端挂起意外致命

New*_*bie 30 git github windows-7-x64

在执行git push时,我收到此错误:

Username for 'https://github.com': Newbie
Password for 'https://Newbie@github.com':
Counting objects: 11507, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8210/8210), done.
Writing objects: 100% (11506/11506), 21.75 MiB | 0 bytes/s, done.
Total 11506 (delta 2213), reused 11504 (delta 2211)
efrror: RPC failed; result=56, HTTP code = 200
atal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
Run Code Online (Sandbox Code Playgroud)

我也尝试过:git config http.postBuffer 524288000,但仍然出错..还试过:git config --global http.postBuffer 2M通过引用git push错误:RPC失败; result = 56,HTTP代码= 0

请有人帮我解决这个问题吗?

Jam*_*Shi 60

请看这里:https://flyingtomoon.com/2011/04/12/git-push-is-failed-due-to-rpc-failure-result56/

问题很可能是因为你的git缓冲区太低了.

您需要通过将git config var"http.postBuffer"设置为524288000来增加Git的HTTP缓冲区.

git config http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud)

  • @ManabKumarMal将全局标签添加到git命令`git config --global http.postBuffer 524288000` (3认同)
  • 这非常有效!解决此问题后,我们遇到了另一个问题(我们使用的是 Bonovo Git Server)。已解决更改 [this other answer](http://stackoverflow.com/questions/13456025/rpc-failed-result-22-http-code-404) 中所述的内容。所以,很可能你们中的一些人可能有同样的问题,所以我想把它贴在这里。 (2认同)
  • 我在 Windows 7 上遇到了类似的问题。经过数小时的谷歌搜索,浏览这篇文章并将缓冲区大小加倍,我发现是我的防病毒软件导致了这个问题 (2认同)
  • 显示不在 Git 目录中,该怎么办? (2认同)

小智 7

我遇到了类似的问题。当我试图将我的分支推送到远程时,我看到了这个错误:> error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

就我而言,此问题是由我连接的代理引起的。我断开了 VPN 连接并尝试再次推送我的更改并且成功了。

  • 刷新(断开/重新连接)您的 VPN。它对我有用。 (3认同)

Vij*_*han 7

将Git缓冲区大小增加到您的仓库最大的单个文件大小:

git config --global http.postBuffer 157286400
Run Code Online (Sandbox Code Playgroud)


小智 6

尝试重新初始化您的 git 存储库: git init


DBD*_*DBD 5

此错误是由我的公司防火墙引起的。


Dam*_*les 0

尝试使用 openssl 库构建 git。参考这篇文章。您可能需要在 Windows 中编译 git。我希望这有帮助。