码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2019-10-19 09:37:43      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:net   close   题解   nsf   资源   art   mil   lob   fat   

 

具体错误信息如下图:

技术图片

 

 

 

    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

 

问题解决,果然是因为我的网速太慢。??

 技术图片

 

当然,这只对我的问题有效,并不一定所有人的问题都是一样的。此外,还有通过设置浅层clonessh替换https的方式。

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

标签:net   close   题解   nsf   资源   art   mil   lob   fat   

原文地址:https://www.cnblogs.com/lbrs/p/11701450.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!