Github无法加载或不显示图片问题

最近发现Github无法加载或不显示图片,严重影响日常使用。查找资料并总结解决步骤如下:

更新:2020.6.30

1.Mac终端输入

$ vim /etc/hosts

2.在hosts文件尾部添加如下信息

# 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.保存退出并刷新Github页面即可显示图片

你可能感兴趣的:(Git,零碎问题解决方案,Mac,OS)