原创

Gitclone异常RPCfailed;result=18,HTTPcode=200MiB

今天clone项目的时候报异常

$ git clone https://github.com/aws/aws-sdk-java.git
Cloning into 'aws-sdk-java'...
remote: Counting objects: 399289, done.
remote: Compressing objects: 100% (11/11), done.
error: RPC failed; result=18, HTTP code = 200 MiB | 0 bytes/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

因为这个库中有很多项目,整个库非常大。最后查找资料知道是curl的postBuffer 默认值较小的原因,需要进行以下配置

git config http.postBuffer 24288000

然后可以通过以下命令查看设置情况

git config --get http.postBuffer

设置完成后,尝试重新clone即可

参考:http://stackoverflow.com/questions/17683295/git-bash-error-rpc-failed-result-18-htp-code-200b-1kib-s


正文到此结束