• github.com port 443">failed to connect to github.com port 443

    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
    image.png

    如何解决
    先把子切换到全局,然后再取消,接着取消全局代理,最后git pull或者git push

    1. git config --global http.proxy http://127.0.0.1:1080
    2. git config --global https.proxy http://127.0.0.1:1080

    取消代码

    1. 取消全局代理:
    2. git config --global --unset http.proxy
    3. git config --global --unset https.proxy

    设置DNS
    C:\Windows\system32\drivers\etc\hosts

    1. https://github.com.ipaddress.com/
    2. 140.82.114.4
    3. https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo
    4. 199.232.69.194
    5. https://ipaddress.com/website/assets-cdn.github.com
    6. 185.199.108.153
    7. 185.199.109.153
    8. 185.199.110.153
    9. 185.199.111.153
    10. 140.82.114.4 github.com
    11. 199.232.69.194 github.global.ssl.fastly.net
    12. 185.199.108.153 assets-cdn.github.com
    13. 185.199.109.153 assets-cdn.github.com
    14. 185.199.110.153 assets-cdn.github.com
    15. 185.199.111.153 assets-cdn.github.com

    刷新DNS

    1. ipconfig /displaydns
    2. ipconfig /flushdns

    https://blog.csdn.net/Hodors/article/details/103226958
    https://houbb.github.io/2021/03/06/github-access
    https://juejin.cn/post/6844904193170341896