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.

5
  • Do you get the same error when cloning the same repository using ssh url? git clone [email protected]:cocos2d/cocos2d-x.git Commented Oct 16, 2015 at 12:36
  • After I tried to set git buffer, It seems worked. Commented Oct 18, 2015 at 4:13
  • @einverne So please post this as self-answer. Commented Oct 19, 2015 at 8:38
  • Related. Probably you have some large files (larger than http.postBuffer) in your repo. Commented Oct 19, 2015 at 11:35
  • Possible duplicate of git push error: RPC failed; result=56, HTTP code = 0 Commented Oct 17, 2016 at 14:35

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.