来自GitHub RPC的git克隆失败;结果= 56,HTTP代码 [英] git clone from GitHub RPC failed; result=56, HTTP code

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

问题描述

当我从GitHub克隆一个仓库时,我遇到了这个错误。我已经尝试了很多次,并且我从未成功过。

  git clone https://github.com/cocos2d/cocos2d- x.git 
克隆到'cocos2d-x'...
remote:计数对象:397914,完成。
remote:压缩对象:100%(19/19),完成。
错误:RPC失败;结果= 56,HTTP代码= 200 MiB | 0字节/秒
致命:远程端意外挂起
致命:早期EOF
致命:索引包失败

我看了一下问题,但我没有安装Avast。如何解决这个问题?

编辑:

据此问题,我通过运行这个命令增加了我的git缓冲区 git config --global http.postBuffer 2M



我在zsh下使用Mac OSX。


$

因此,如果遇到此错误,请运行以下命令:

  git config --global http.postBuffer 2M 

然后重试一段时间。

参考:



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


When I clone a repository from GitHub, I met this error. I have tried a lot of times and I never succeed.

git clone https://github.com/cocos2d/cocos2d-x.git
Cloning into 'cocos2d-x'...
remote: Counting objects: 397914, done.
remote: Compressing objects: 100% (19/19), done.
error: RPC failed; result=56, HTTP code = 200 MiB | 0 bytes/s      
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

I have taken a look at this question, but I don't have Avast installed. How can I solve it?

Edit:

According to this question , I have increased my git buffer by running this command git config --global http.postBuffer 2M.

I am using Mac OSX, under zsh.

解决方案

I have tried for several times after I set git buffer, as I mentioned in the question, it seems work now.

So if you met this error, run this command:

git config --global http.postBuffer 2M

and then try again for some times.

Reference:

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

这篇关于来自GitHub RPC的git克隆失败;结果= 56,HTTP代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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