github.com port 443: Operation timed out 的解决方法

4 min read
Auto fetch failed unable to access 'https://github.com/x/x-daily.git/': Failed to connect to github.com port 443: Operation timed out

fatal: unable to access 'https://github.com/x/x-daily.git/': Failed to connect to github.com port 443: Operation timed out

原因

Git的Http代理的问题,Git支持三种协议:git://、ssh://和http://,本来push的时候应该走ssh隧道的,但是因为设置了http代理,所以就走了http的代理,于是就提交不了。

解决办法

在github项目在本地的根目录下打开git命令行,

执行下面的命令

git config --global --unset http.proxy