git clone报错error: RPC failed; curl 18 transfer closed with outstanding read data remaining


报错

    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

这个错误产生的原因是时间太久,资源太大。
基于此,第一种考量即扩大缓存区。即在命令行输入:

git config --global http.postBuffer 524288000

然而这对我并没有用。

第二种可能是你网速太慢,导致运行失败。

因此我们可以输入:

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

声明:小小博客|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - git clone报错error: RPC failed; curl 18 transfer closed with outstanding read data remaining


Carpe Diem and Do what I like