git clone 时出现如下错误:
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
错误原因:下载的资源太大
解决办法一:
$ git clone http://github.com/large-repository --depth 1 #先下载目录级
$ cd large-repository
$ git fetch --unshallow #再更新获取
解决方法二: 用ssh方式
网友评论