在windows
输入C:\Windows\System32\drivers\etc
路径下找到hosts
文件修改
该文件需要管理员权限,可以在属性-安全
编辑权限设置
可以在
https://ip.tool.chinaz.com/https://www.ipaddress.com/ 网站查询github
的IP地址
在hosts
文件中新增数据
20.205.243.166 github.com
128.242.240.180 github.global.ssl.fastly.net
185.199.110.153 assets-cdn.github.com
185.199.109.133 raw.githubusercontent.com
185.199.110.154 github.githubassets.com
185.199.108.153 github.io
更新本地DNS缓存,cmd
中输入:ipconfig /flushdns
后回车