解决GitHub代码上传失败
问题记录
使用Git push或pull代码时,遇到如下报错信息 Failed to connect to github.com port 443: Timed out 或者 OpenSSL SSL_read: Connection was reset, errno 10054
解决办法
- 查询IP地址的网站:https://www.ipaddress.com/
- 查找下面三个网站的IP地址,找到直到按照下面图片上的格式粘贴到host文件中即可
github.com github.global.ssl.fastly.net codeload.Github.com![image]()
- host文件位置 C:\Windows\System32\drivers\etc
- 使用
ipconfig /flushdns命令刷新DNS信息


浙公网安备 33010602011771号