如下,git clone时报错:

RPC failed; curl 18 transfer closed with outstanding read data remaining 5670 bytes of body 
are still expected fetch-pack: unexpected disconnect while reading sideband packet early EOF fetch-pack: 
invalid index-p

如果排除缓存区大小的问题,可能为网络原因,需做如下设置

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

再次尝试clone,就可以了。

ps:如果是缓存区问题,做如下设置:

git config http.postBuffer 524288000
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐