git克隆项目时报错curl 18 transfer closed with outstanding read data remaining
在git clone 时会有报错‘error: RPC failed; curl 18 transfer closed with outstanding read data remaining’,接下来总结了三个方法解决1、加大缓存区(500M):git config --global http.postBuffer 5242880002、少clone一些,–depth 1的含义是复制深度为1,就
·
在git clone 时会有报错‘error: RPC failed; curl 18 transfer closed with outstanding read data remaining’,接下来总结了三个方法解决
1、加大缓存区(500M):
git config --global http.postBuffer 524288000
2、少clone一些,–depth 1的含义是复制深度为1,就是每个文件只取最近一次提交,不是整个历史版本。
git clone https://github.com/flutter/flutter.git --depth 1
3、换协议(如果有权限的话)
clone http方式换成SSH的方式,即 https:// 改为 git://
例如git clone https://github.com/flutter/flutter.git
换成git clone git://github.com/flutter/flutter.git
旨在分享方法
更多推荐



所有评论(0)