failed to connect to github.com port 443
fatal: unable to access ‘https://github.com/xxxx.git/‘
: Failed to connect to github.com port 443 after 21056 ms: Timed out
如何解决
先把子切换到全局,然后再取消,接着取消全局代理,最后git pull或者git push
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
取消代码
取消全局代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
设置DNS
C:\Windows\system32\drivers\etc\hosts
https://github.com.ipaddress.com/
140.82.114.4
https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo
199.232.69.194
https://ipaddress.com/website/assets-cdn.github.com
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
刷新DNS
ipconfig /displaydns
ipconfig /flushdns
https://blog.csdn.net/Hodors/article/details/103226958
https://houbb.github.io/2021/03/06/github-access
https://juejin.cn/post/6844904193170341896