我发现了一个错误,比如:

Cloning into 'large-repository'...
remote: Counting objects: 20248, done.
remote: Compressing objects: 100% (10204/10204), done.
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 config --global http.postBuffer 524288000

git clone repo_url --depth 1

我已经遵循了以上步骤,最后我成功地克隆了我的代码。

08-27 11:32