报错
使用git将github上的文件拉取到服务器上产生如下报错
Cloning into '×××'...
remote: Enumerating objects: 208, done.
remote: Counting objects: 100% (99/99), done.
remote: Compressing objects: 100% (74/74), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
解决
1)使用git命令增大缓存(单位是b,524288000B也就500M左右)
git config --global http.postBuffer 524288000
2)修改下载速度
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
使用git config --list查看是否生效,此时重新克隆即可
git config --list
以上两种方式依旧无法clone下,尝试以浅层clone,然后更新远程库到本地
git clone --depth=1 http://xxx.git
git fetch –unshallow
参考文章:链接