(转自https://blog.csdn.net/sheep8521/article/details/81215195)
git clone https://example.com/example/example.git
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
1.当使用git clone 产生这个问题的时候,在第一次克隆的时候,把克隆深度设置为1,然后再fetch
git clone https://example.com/example/example.git --depth 1
cd example
git fetch --unshallow
2.直接从某个分支下面克隆项目
git clone -b develop https://example.com/example/example.git
还有一种方法就是改用ssh链接克隆