最近又发现Github无法加载或不显示图片,严重影响日常使用。查找资料并总结解决步骤如下:
更新:2020/07/06
- wins10打开文件夹
C:\Windows\System32\drivers\etc
2.使用最新版的notepad++打开,粘贴如下内容:
# GitHub Start
140.82.114.4 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
3.保存,notepad++会提示使用管理员打开文件并保存,确认就是了
4.再去打开或刷新Github页面,图片已经可以加载出来了。
参考: