1. Timed out 报错
fatal: unable to access 'https://github.com/xxxx/xxxx.git/': Failed to connect to github.com port 443: Timed out
解决
设置代理
shell
git config --global http.proxy 127.0.0.1:1080 #为全局的 git 项目都设置代理
git config --local http.proxy 127.0.0.1:1080 #为某个 git 项目单独设置代理
另外:
查看代理
shell
git config --global http.proxy # 输出 127.0.0.1:1080
git config --local http.proxy # 输出 127.0.0.1:1080
取消代理
shell
git config --global --unset http.proxy
git config --global --unset https.proxy
2. OpenSSL 报错
fatal: unable to access 'https://github.com/code-huan/vuepress-theme-hope.git/': OpenSSL SSL_read: Connection was reset, errno 10054
解决
修改设置,解除ssl验证
shell
git config --global http.sslVerify "false"