建议
- 最好科学上网
- 配置ssh key
可能错误
clone
remote: Enumerating objects: 357, 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
解决方法:
将缓存Buffer容量调大(特别是如有大文件)
bash
sudo apt install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 5000000000
push
如有科学上网,push还是遇到问题的话可以配置代理
bash
git config --global http.proxy 127.0.0.1:1234
git config --global https.proxy 127.0.0.1:1234
地址就是本地回环即可,端口号查看科学上网软件监听的端口并做相应修改
bash
git config --global http.proxy socks5 127.0.0.1:1234
git config --global https.proxy socks5 127.0.0.1:1234