经常使用 Github 的开发在执行 git push 时经常会遇到 Failed to connect to github.com port 443 问题,今天紫竹就来介绍下如何完美解决这个问题。

然后找到 A Records 依次记下 ip。

最后打开电脑的hosts文件,把下列的东东写在最后,然后保存即可:

1
2
3
4
5
140.82.113.4    github.com
185.199.108.153 assets-cdn.github.com
151.101.1.194 github.global.ssl.fastly.net
52.224.38.193 github.dev
185.199.108.133 githubusercontent.com