记得上次安装Homebrew都遇到这个问题,一顿搜索,才解决。结果电脑换磁盘重装系统,结果还遇到这个问题,又是一顿搜索。这次就记录下来。
以免以后再一顿搜索。
error: RPC failed; result=56, HTTP code = 200 MiB | 1024 bytes/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
解决方法:
git config --global http.postBuffer 524288000
# some comments below report having to double the value:
git config --global http.postBuffer 1048576000
亲测可用
参考网址:http://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning