1、最近接手了一个项目,下载代码时,总会报错
git clone https://e.coding.net/xxx/xxx.git error: RPC failed; curl 18 transfer closed with outstanding read data remaining
2、有建议说将缓存设置大一些,但没有用
#524288000单位为Byte,524288000B也就是 500MB git config --global http.postBuffer 524288000 #1G git config --global http.postBuffer 1048576000
3、最后将下载方式从https改为ssh方式就好了
ssh-keygen -t rsa -C "neohope@yahoo.com" GIT_SSH_COMMAND="ssh -i /PATH_TO_ISA/xxx.rsa" git clone git@e.coding.net:xxx/xxx.git