RPC failed curl 18 transfer closed with outstanding read data remaining

2022年 6月 3日 53点热度 0人点赞

file

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

原因 1: 缓存区溢出

解决方法: 命令行输入

git config http.postBuffer 524288000

执行上面命令如果依旧 clone 失败, 考虑可能原因 2: 网络下载速度缓慢

解决方法: 命令行输入

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

如果依旧 clone 失败, 则首先浅层 clone, 然后更新远程库到本地

git clone --depth=1 http://gitlab.xxx.cn/yyy/zzz.git
git fetch --unshallow

参考链接

file

rainbow

这个人很懒,什么都没留下

文章评论