Git "efrror: RPC failed; result=55, HTTP code = 0"推送

标签 git github push git-push

我在这上面花了一整天,真的需要一些帮助。当我尝试推送一个相对较大的提交时,

Writing objects: 100% (21/21), 908.07 KiB | 0 bytes/s, done.
Total 21 (delta 17), reused 0 (delta 0)

git 需要很长时间才能响应然后给出

"efrror: RPC failed; result=55, HTTP code = 0 
atal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date"

我已经搜索了这个错误代码,最有可能的解决方案似乎是扩展缓冲区大小

git config http.postBuffer 524288000

我试过这个解决方案,但没有成功。在 VonC 的建议下,我尝试从 http 切换到 ssh。从 ssh,我在同一点挂了很长时间。最终出现如下错误信息

Read from remote host github.com: Connection reset by peer
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

这可能是路由器问题吗?我曾尝试从不同网络上的不同计算机进行推送,并且能够成功完成此操作。

我离开了 Windows 主机上的 Linux 机器,并使用糟糕的 poshGit Windows PowerShell 界面。

有什么想法吗??

最佳答案

您可以按照 BitBucket article 中的调试建议进行操作:

Specifically, the 'result=55' portion.
This is the error code coming from libcurl, the underlying library used in http communications with Git. From the libcurl documentation, a result code of 55 means:

CURLE_SEND_ERROR (55)
    Failed sending network data.

原因

This can be caused by a variety of network related issues or even the Bitbucket service itself. It essentially means that the connection was dropped unexpectedly. Things to check would be to attempt the push from a machine on a 'clean' network outside of any corporate firewalls or proxies. Check all proxy servers to ensure they are properly moving SSL data and are fully permitted to complete.

To help troubleshoot this issue, try running the push with the command

GIT_CURL_VERBOSE=1 git push

解决方法

If after checking all connections and proxy configurations the connection still fails consistently, please report the information above to support. Then switch to SSH. We have a guide to getting it setup for Git at Set up SSH for Git. If you should run into any configuration issues while setting up SSH, please refer to our SSH Troubleshooting guide.

关于Git "efrror: RPC failed; result=55, HTTP code = 0"推送,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17437642/

相关文章:

github - GPG key 生成失败 : End of file

github - 如何在 GitHub (readme.md) 上发布 OpenAPI 文档的最佳方式?

git - "git remote -v"显示 (fetch) 和 (push) 两次,一次用于 'github',一次用于 'origin' 这意味着什么?

C — 如何使我的堆栈完全动态化?

git - 如何摆脱git中的 merge 提交

ruby-on-rails - Heroku:git推送暂存本地分支:master

git - 机器人/蜘蛛会克隆公共(public) git 存储库吗?

git - ssh-add 创建错误连接到代理 : Connection timed out (Windows 10)

git - 如何解决git merge 错误 "Swap file .MERGE_MSG.swp already exists"

git - 本地删除了文件但无法将更改推送到heroku