3

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.

Community
  • 1
  • 1
einverne
  • 6,454
  • 6
  • 45
  • 91

1 Answers1

4

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

Community
  • 1
  • 1
einverne
  • 6,454
  • 6
  • 45
  • 91