关于git:Git常见错误及解决办法收集

git clone 谬误

error: RPC 失败。curl 18 transfer closed with outstanding read data remaining

谬误截图

可能起因1:缓存溢出
解决办法:

git config http.postBuffer 524288000

可能起因2:下载速度太慢
解决办法

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

如果仍然失败,可思考先浅层次Clone,而后再残缺fetch

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

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理