采坑笔记:
使用git下载文件时报错:error: RPC failed; curl 18 transfer closed with outstanding read data remain
1、缓存区溢出curl的postBuffer的默认值大小,需要增加
使用命令:git config --global http.postBuffer 524288000
524288000B也就500M左右
有时增加到500M还不行,直接加到2G
git config --global http.postBuffer 2097152000
使用命令:git config --list 查看修改后的状态。
2、修改下载速度
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999