1. mac 用户可以使用SwitchHosts 进行hosts管理 官网下载

tu

2. 开启backup

开启backup

3. 将以下代码复制进去

# GitHub Start 
140.82.112.4       github.com
199.232.69.194     github.global.ssl.fastly.net
185.199.108.153    assets-cdn.github.com
185.199.109.153    assets-cdn.github.com
185.199.110.153    assets-cdn.github.com
185.199.111.153    assets-cdn.github.com
199.232.96.133     raw.githubusercontent.com
199.232.96.133     gist.githubusercontent.com
199.232.96.133     cloud.githubusercontent.com
199.232.96.133     camo.githubusercontent.com
199.232.96.133     avatars0.githubusercontent.com
199.232.96.133     avatars1.githubusercontent.com
199.232.96.133     avatars2.githubusercontent.com
199.232.96.133     avatars3.githubusercontent.com
199.232.96.133     avatars4.githubusercontent.com
199.232.96.133     avatars5.githubusercontent.com
199.232.96.133     avatars6.githubusercontent.com
199.232.96.133     avatars7.githubusercontent.com
199.232.96.133     avatars8.githubusercontent.com
# GitHub End

4. 如果还是不行,那就从这里 查询ip 上查询一下上面的域名对应的ip是否已经改变

tu