Git 报错:git

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

because have error when clone by HTTP protocol (curl command).

And, you should increment buffer size:

git config --global http.postBuffer 524288000

原因:由于Http协议错误,当Pull或者Clone的时候

解决方案: 在Git Bash Here 中执行该 git config --global http.postBuffer 524288000 命令,
       
        然后再执行git pull 或者 git clone命令。


    

注: 当时我遇到该问题是是这样解决的,此方案仅供参考。
原文地址:https://www.cnblogs.com/android-blogs/p/6346705.html