sourcetree拉取代码出错 error: RPC failed; curl 18 transfer closed with outstanding read data remaining

一、错误提示

 二、原因

要克隆的文件太大

三、解决方法

1、第一种方法:少clone一些,每个文件只取最近一次提交,不是整个历史版本

    git clone https://github.com/xx/xx.git --depth 1    

2、第二种方法:加大缓存区 

    git config --global http.postBuffer 524288000

3、第三种方法:更换clone链接,使用SSH方式

我先用的第一种方式,仍然不行。然后采用第二种方式,加大缓存区,仍然不行。采用第三种方法解决。目前想到这三种方式,可以根据自己的情况选择。

原文地址:https://www.cnblogs.com/qtiger/p/13175991.html