git clone 新项目时,报error: RPC failed; curl 18 transfer closed with outstanding read data remaining


error: RPC failed; curl 18 transfer closed with outstanding read data remaining 
fatal: The remote end hung up unexpectedly 
fatal: early EOF 
fatal: index-pack failed

原因:我们的项目由于时代久远,所以导致整个项目比较复杂庞大。出现这种错误,就是因为curl的postBuffer默认值太小的原因,重新在终端配置一下这个值就可以了。
解决方案:
在Git Bash Here 中执行该 git config --global http.postBuffer 524288000 命令,
可以通过这个命令查看是否配置成功 git config --list
然后再执行git pull 或者 git clone命令。

原文地址:https://www.cnblogs.com/amunamuna/p/8477286.html