github网站无法访问解决方法host

github网站无法访问解决方法host

复制以下内容,然后打开:windows系统:C:\Windows\System32\drivers\etc中打开host文件,粘贴进去。

[info]

# GitHub Start
20.205.243.166 github.com
140.82.114.4 gist.github.com
185.199.108.153 assets-cdn.github.com
151.101.64.133 raw.githubusercontent.com
151.101.108.133 gist.githubusercontent.com
151.101.108.133 cloud.githubusercontent.com
151.101.108.133 camo.githubusercontent.com
151.101.108.133 avatars0.githubusercontent.com
151.101.108.133 avatars1.githubusercontent.com
151.101.108.133 avatars2.githubusercontent.com
151.101.108.133 avatars3.githubusercontent.com
151.101.108.133 avatars4.githubusercontent.com
151.101.108.133 avatars5.githubusercontent.com
151.101.108.133 avatars6.githubusercontent.com
151.101.108.133 avatars7.githubusercontent.com
151.101.108.133 avatars8.githubusercontent.com
# GitHub End

[/info]

如果以上失效可以利用下面的办法:

打开:https://www.ip138.com/

然后输入:github.com

最后将查到的IP地址添加到host文件中例如:20.205.243.166 github.com

例外加速仓库下载:https://gh.api.99988866.xyz/

THE END