问题描述
我使用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)
其他一些事情:
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:DevelopPOST git-receive-pack (23013447 bytes)
fatal: The remote end hung up unexpectedlyfatal: 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!