1.git push 时报错:
$ git push
fatal: unable to access 'https://github.com/aaaalready/code_home.git/': Failed to connect to github.com port 443: Timed out
$ git push
fatal: unable to access 'https://github.com/xxx/autowrite.git/':
Failed to connect to github.com port 443: Timed out
原因:
因为git在拉取或者提交项目时,中间会有git的http和https代理,但是我们本地环境本身就有SSL协议了,所以取消git的https代理即可,不行再取消http的代理。
后续
原因还有一个,当前代理网速过慢,所以偶尔会成功,偶尔失败。
解决方法:
//取消http代理
git config --global --unset http.proxy
//取消https代理
git config --global --unset https.proxy