Git推送失败。错误:RPC失败;结果= 56,HTTP代码= 0 [英] Git push failed. error: RPC failed; result=56, HTTP code = 0

查看:147
本文介绍了Git推送失败。错误:RPC失败;结果= 56,HTTP代码= 0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用bitbucket存储库,并在项目中做了很多更改。
所以当我进入代表时,我得到了一个错误。 SourceTree:git -c diff.mnemonicprefix = false -c core.quotepath = false push -v --tags origin开发:Develop
POST git-receive-pack(23013447 bytes)

fatal:远程终端意外挂断
致命:远程终端意外挂断



错误:RPC失败;结果= 56,HTTP代码= 0



推送至到位桶
一切都是最新的



完成时有错误,请参阅上文。



我试过了:

  git config --global http.postBuffer2M 

git config http.postBuffer 524288000

但它没有帮助。

解决方案

从我所知道的错误意味着上传链接以不应该的方式终止。这通常是由于超时或网络连接问题。随着缓冲区大小的增加,服务器不应该超时,但您仍可能有其他问题需要检查,如下所示。请注意,我假设你在git config --global http.postBuffer 2M中有一个http.postBuffer和2M之间的空格,因为你原来的文章没有,我认为在这里输入它时是一个错字。你也可以通过使用524288000(这是500MB)而不是2M来将全局缓冲区更改为更大的大小(即git config --global http.postBuffer 524288000)

其他一些事情:


  • 如果您有像卡巴斯基AV这样的软件防火墙,请将其禁用并重试。

  • 如果您通过无线连接,请切换至有线以太网。一些无线适配器/驱动程序似乎对大型提交有问题。

  • 确保您拥有可靠的ISP链接。

  • 另外,如果您使用HTTP对于git,请设置SSH密钥对,然后使用它们。


I use bitbucket repository and I made a lot of changes in the project. So when i push into rep, i got an error. SourceTree : git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin Develop:Develop POST git-receive-pack (23013447 bytes)

fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly

error: RPC failed; result=56, HTTP code = 0

Pushing to bitbucket. Everything up-to-date

Completed with errors, see above.

I tried:

git config --global http.postBuffer2M

git config http.postBuffer 524288000

but it doesn't help.

解决方案

The error from what I know means that the upload link got terminated in a way that it wasn't supposed to. This is typically because of either a timeout or network connectivity issues. With increasing the buffer size the servers shouldn't be timing out, but you may still have other issues to check for as below. Note that I am assuming that you have a space between http.postBuffer and 2M in "git config --global http.postBuffer 2M" since your original post didn't and I thought it is a typo when entering it here. You could also change the global buffer to a much larger size like by using 524288000 (which is 500MB) instead of 2M (i.e. git config --global http.postBuffer 524288000)

A few other things:

  • If you have a software firewall like Kaspersky AV, disable it and retry.
  • If you are over wireless connection, switch to a hardwire ethernet. Some wireless adaptors/drivers seem to be problematic with large commits.
  • Make sure you have a reliable ISP link.
  • Also if you are using HTTP for git, setup SSH key-pair and use them instead.

这篇关于Git推送失败。错误:RPC失败;结果= 56,HTTP代码= 0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆