git 报错 RPC failed; curl 18 transfer closed with outstanding read data remaining

这个错误是因为项目太久,tag资源文件太大

找了很久网上都说这样:

配置如下: $ git  config –global http.postBuffer 24288000 $ git config –list

如果还不行呢

$ git clone http://github.com/large-repository --depth 1
$ cd large-repository
$ git fetch --unshallow

点赞