git克隆报错:error: RPC failed; curl 56 transfer closed with outstanding read data remaining
错误:RPC失败;curl 56传输关闭,剩余未读数据
此错误是因为在通过HTTP协议克隆(curl命令)时出错。
并且,您应该增加缓冲区大小,执行以下命令
git config --global http.postBuffer 524288000
如果还出现以上错误,可能是因为文件过大或者过多而造成。所以需要执行两个步骤:
一. 先把depth为1先clone
$ git clone http://克隆仓库的地址 --depth 1
二. 进入clone下来的目录,进行unshallow
$ git fetch --unshallow