git clone代码出错:
remote: Counting objects: 11667, done remote: Finding sources: 100% (11667/11667) remote: Getting sizes: 100% (8591/8591) error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
主要原因是项目资源太大了。
解决方法:
1. 网上大部分解决措施:命令终端输入
git config --global http.postBuffer 524288000
需要注意的是http.postBuffer 后,单位是b,524288000B也就500M左右
2.一般clone http方式的容易产生此问题,改成SSH的方式也有效,即https://改为git://