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链接克隆
本文介绍了几种解决使用Git克隆仓库时遇到特定错误的方法,包括设置克隆深度、指定分支克隆及使用SSH链接。
9328

被折叠的 条评论
为什么被折叠?



