美文网首页工作生活
git clone时报RPC failed; curl 18 t

git clone时报RPC failed; curl 18 t

作者: yaoyao_IOS | 来源:发表于2019-07-04 11:01 被阅读0次

原因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://xxx.xxx.cn/yyy/zzz.git
cd large-repository
git fetch --unshallow

相关文章

网友评论

    本文标题:git clone时报RPC failed; curl 18 t

    本文链接:https://www.haomeiwen.com/subject/jhdlhctx.html