git Git推送错误:RPC失败;result=56, HTTP code = 200 fatal: 远程端意外挂断了fatal

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24952683/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:21:11  来源:igfitidea点击:

Git push error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal

gitgithubwindows-7-x64

提问by Newbie

While doing git push, I receive this error:

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

Username for 'https://github.com': Newbie
Password for 'https://[email protected]':
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

I also tried doing: git config http.postBuffer 524288000, but still error.. Also tried: git config --global http.postBuffer 2M by referring on git push error: RPC failed; result=56, HTTP code = 0

我也尝试过:git config http.postBuffer 524288000,但仍然错误.. 也尝试过:git config --global http.postBuffer 2M 参考git push error: RPC failed; 结果=56,HTTP 代码 = 0

Please can anyone help me out with this?

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

回答by James Shi

Look here: https://flyingtomoon.com/2011/04/12/git-push-is-failed-due-to-rpc-failure-result56/

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

The problem is most likely because your git buffer is too low.

问题很可能是因为您的 git 缓冲区太低。

You will need to increase Git's HTTP buffer by setting the git config var “http.postBuffer” to 524288000.

您需要通过将 git 配置变量“http.postBuffer”设置为 524288000 来增加 Git 的 HTTP 缓冲区。

git config http.postBuffer 524288000

回答by Vijay Chauhan

Increase the Git buffer size to the largest individual file size of your repo:

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

git config --global http.postBuffer 157286400

回答by DBD

This error was caused by my corporate Firewall.

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

回答by GeekyDeveloper

I faced a similar issue. When I was trying to push my branch to remote, I was seeing this error: >error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

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

In my case, this issue was caused due to a proxy that I was connected to. I disconnected the VPN connection and tried to push my changes again and that worked.

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

回答by NIKHIL NAGRALE

Try re-initializing your git repository: git init

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

回答by Mohammad Parvez

It will work after increasing Git's HTTP buffer by setting the git config var “http.postBuffer” to 524288000.

通过将 git 配置变量“http.postBuffer”设置为 524288000 来增加 Git 的 HTTP 缓冲区后,它将起作用。

git config http.postBuffer 524288000

git 配置 http.postBuffer 524288000

回答by Michael M.

This happened to me when I was cloning a git repo that was taking a long time. I went to do something else and my computer went to sleep, terminating the connection. Turning off auto sleep on my computer worked for me.

当我克隆一个需要很长时间的 git repo 时,这发生在我身上。我去做别的事情,我的电脑进入睡眠状态,终止了连接。在我的电脑上关闭自动睡眠对我有用。

回答by Damian Nadales

Try building git using openssl libraries. Refer to this post. You may have to compile git in Windows. I hope that helps.

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

回答by Tod Birdsall

I was running into a very similar issue, though I was deploying to an Azure Web App via a git push. I received this error:

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

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

The solution for me was to change my deployment environment from a Macbook to a Windows desktop. See this answerfor full details.

我的解决方案是将我的部署环境从 Macbook 更改为 Windows 桌面。有关完整详细信息,请参阅此答案