git clone一半报错“RPC failed;”

git 克隆一般报错

在github上克隆phpredis扩展源码时报以下错误错:

Cloning into ‘phpredis’…
remote: Counting objects: 8999, done.
remote: Compressing objects: 100% (23/23), done.
Receiving objects: 37% (3333/8999), 2.14 MiB | 5.00 KiB/s
error: RPC failed; result=18, HTTP code = 200 | 7.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

开始以为是网络延迟问题,后经查阅资料,发现是克隆大文件问题造成的,

git config –global http.postBuffer 524288000

增加500兆的缓存后,再次克隆成功了

作者: 二皮

Hackers please go away