git 文件太大 克隆失败的解决方法

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

当使用git clone 产生这个问题的时候,在第一次克隆的时候,把克隆深度设置为1,然后再fetch

git clone  https://example.com/example/example.git --depth  1
cd example
git fetch --unshallow

还有一种方法就是改用ssh链接克隆

猜你喜欢

转载自blog.csdn.net/qq1035661353/article/details/81097701
今日推荐