error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: 2406 bytes of

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

出现以上错误有以下原因

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
  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值