git push error: RPC failed; result=56, HTTP code = 0 ,the remote end hung up unexpectedly

git push的时候发生标题上面的错误,不知道怎么解决。搜索了下stackoverflow,上面说是http的postBuffer不够导致的。

要运行以下命令:

git config --global http.postBuffer 2M

但是,很遗憾,没有解决,还是同样的错误。


又有的回答说result=56是github网站本身的问题导致的,瞎,我整个下午都是这样的问题,不可能是github网站本身的问题吧?然后我重新下载最新版的git,重新配置了下SSH key,还是不行。等我解决了就update这文章。。= =!

################################update#####################################

换了个提交方式,不用https了,改用SSH的提交方式就能解决标题错误了:
git remote add origin [ssh_url]

如果以上出现了fatal: remote origin already exists. 这个错误。

那么删除它就可以了:
git remote rm origin

然后再运行:
git remote add origin [ssh_url]

然后接着:

git remote set-url origin [ssh_url]

最后再 git push origin -u master




references:

http://stackoverflow.com/questions/22005259/git-push-error-rpc-failed-result-56-http-code-0

http://stackoverflow.com/questions/18436812/why-do-i-get-error-rpc-failed-result-52-http-code-0-fatal-the-remote-end-h

http://blog.csdn.net/dream_loving/article/details/15812311

http://tiku.io/questions/974312/git-efrror-rpc-failed-result-55-http-code-0-on-push

http://blog.csdn.net/dengjianqiang2011/article/details/9260435

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值