git clone失败
报错如下:
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
解决方法1:缓存不够,增大缓存,单位是b,524288000大约500m
git config --global http.postBuffer 524288000
解决方法2:下载速度受限,修改下载速度
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
查看设的值:
git config --list
解决方法3:尝试以浅层clone,然后更新远程库到本地
git clone --depth=1 http://xxx.git
git fetch --unshallow