Git push错误:RPC失败;result=56, HTTP code = 200 fatal:远端挂起意外致命



当执行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

我也试着做:git config http。postBuffer 524288000,但仍然错误。也试过:git config—global http。postBuffer 2M参考git push error: RPC failed;result=56, HTTP code = 0

有谁能帮我一下吗?

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

这个问题很可能是因为你的git缓冲区太少了。

你需要通过设置Git配置变量" HTTP "来增加Git的HTTP缓冲区。postBuffer "到524288000.

git config http.postBuffer 524288000

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

git config --global http.postBuffer 157286400

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

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

在我的情况下,这个问题是由于我连接的代理引起的。我断开了VPN连接,并试图再次推动我的更改,这是有效的。

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

网络连接差是我的问题。检查你的网络实力

通过将git config变量http.postBuffer设置为524288000来增加Git的HTTP缓冲区,

git config http.postBuffer 524288000

当我克隆一个花费了很长时间的git仓库时,这种情况发生在我身上。我去做别的事情,我的电脑进入睡眠状态,终止了连接。关掉电脑的自动休眠功能对我来说很有效。

我遇到了一个非常类似的问题,尽管我是通过git推送部署到Azure Web应用程序。我收到这个错误:

RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
The remote end hung up unexpectedly

我的解决方案是将我的部署环境从Macbook改为Windows桌面。

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

你可以试试这个,也许这个代码是工作的

git config http.sslVersion tlsv1.2

我尝试将curl更新到最新版本,它非常棒,它为我工作

最新更新