Cloning into ‘aplanmis-project‘...
remote: Enumerating objects: 176887, done.
remote: Counting objects: 100% (176887/176887), done.
remote: Compressing objects: 100% (75181/75181), 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 # 2GB
git config --global http.postBuffer 2097152000 # 2GB
git config --global http.postBuffer 3194304000 # 3GB
git config --global http.lowSpeedLimit 0 git config --global http.lowSpeedTime 999999
2.用http方式下载代码,发现可能依旧会存在该问题,用ssh方式来下载代码,下面是ssh公钥配置的说明
生产ssh公钥: ssh-keygen -t rsa -C "xxxxx@xxxxx.com"
邮箱地址: xxxxx@xxxxx.com
~/.ssh/id_rsa.pub
文件内容,获取到你的 public key
ssh -T git@gitee.com
git clone git@gitee.com:......ssh地址
原文:https://www.cnblogs.com/qianshouxiuluo/p/11778559.html