windows系统的hosts文件的位置以下:C:\Windows\System32\drivers\etc\hosts linux
mac/linux系统的hosts文件的位置以下:/etc/hostsgit
获取Github相关网站的ip
访问
https://www.ipaddress.com,拉下来,找到页面中下方的“IP Address Tools – Quick Links”
分别输入github.global.ssl.fastly.net和github.com,查询ip地址
151.101.113.194 github.global.ssl.fastly.net
192.30.253.112 github.com
ipconfig /flushdns
命令,刷新 DNS 缓存。