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
11-05
1216
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-24
8191
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-23
543
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-28
3277
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-08
6652
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-01
551
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-06
3005
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-19
5928
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交