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后回车