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
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.
Reference:
本文转自 h2appy 51CTO博客,原文链接:http://blog.51cto.com/h2appy/1750465,如需转载请自行联系原作者