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.緩存區溢出curl的postBuffer的默認值太小,需要增加緩存
使用git命令增大緩存(單位是b,524288000B也就500M左右)
git config --global http.postBuffer 524288000
使用git config --list查看是否生效
此時重新克隆即可
2.網絡下載速度緩慢
修改下載速度
git config --global http.lowSpeedLimit 0 git config --global http.lowSpeedTime 999999
3.以上兩種方式依舊無法clone下,嘗試以淺層clone,然后更新遠程庫到本地
git clone --depth=1 http://xxx.git
git fetch --unshallow