解决fatal: unable to access xxx: Failed to connect to github port 443: Timed out

  • 1. 参考资料
  • 2. 解决方法
    • 2.1 了解proxy服务器地址
    • 2.2 配置git

很多时候git push不好使,总是报错:Failed to connect to github port 443: Timed out,这是因为git不会自动使用proxy,需要配置,不多BB,直接开始介绍方法

1. 参考资料

Failed to connect to github port 443: Timed out [English]

2. 解决方法

2.1 了解proxy服务器地址

一般来说,在软件高级设置中都有,我们查一下就行。这是博主的在设置中找到的配置:

于是博主的proxy服务器的地址为:127.0.0.1:41091

2.2 配置git

配置git相关proxy即可,httphttps最好都配上,否则仍有可能push失败,代码如下:

git config --global http.proxy http://127.0.0.1:41091
git config --global https.proxy https://127.0.0.1:41091

OK,现在就能随心所欲地push了,妈妈再也不用担心Failed to connect to github port 443: Timed out了,🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫🛫

更多推荐

解决fatal: unable to access xxx: Failed to connect to github.com port 443: Timed o