error: RPC failed; curl 18 transfer closed with outstanding read data remaining
使用git clone命令从github克隆源码到电脑时出现了以下问题

究其原因是因为curl的postBuffer的默认值太小,我们需要调整它的大小,在终端重新配置大小。
可以根据你需要下载的文件大小,将postBuffer值配置成合适的大小。
我配置的是500M。
git config --global http.postBuffer 524288000
这样已经配置好了,如果你不确定,可以根据以下命令查看postBuffer。
git config --list


浙公网安备 33010602011771号