1、查ip
進入 ip.chinaz.com ,分别輸入github.com 和github.global.ssl.fastly.net可以查到兩個ip
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLiQDOxEzX3xCZlhXam9VbsUmepNXZy9CXwJWZ3xCdh1mcvZ2Lc1zaHRGcWdUYuVzVa9GczoVdG1mWfVGc5RHLwIzX39GZhh2csATMflHLwEzX4xSZz91ZsAzMfRHLGZkRGZkRfJ3bs92YskmNhVTYykVNQJVMRhXVEF1X0hXZ0xiNx8VZ6l2cssmch1mclRXY39CXldWYtlWPzNXZj9mcw1ycz9WL49zZuBnLykjM0YGNxE2Y4MjZyUWOyYzX0QTN0ADM3AzLcZDMyIDMy8CXn9Gbi9CXzV2Zh1WavwVbvNmLvR3YxUjLyM3Lc9CX6MHc0RHaiojIsJye.png)
2、修改hosts檔案
進入C:\Windows\System32\drivers\etc
在末尾加入ip和網址(兩個都加入)并儲存
#140.82.113.4 github.com
#52.74.223.119 www.github.com
#185.31.17.184 github.global.ssl.fastly.net
#github
#192.30.253.112 github.com
#151.101.113.194 github.global.ssl.fastly.net
20.205.243.166 github.com
203.98.7.65 gist.github.com
185.199.108.153 assets-cdn.github.com
185.199.111.133 raw.githubusercontent.com
185.199.110.133 gist.githubusercontent.com
185.199.111.133 cloud.githubusercontent.com
#151.101.100.133 camo.githubusercontent.com
#151.101.100.133 avatars0.githubusercontent.com
#151.101.100.133 avatars1.githubusercontent.com
#151.101.100.133 avatars2.githubusercontent.com
#151.101.100.133 avatars3.githubusercontent.com
#151.101.100.133 avatars4.githubusercontent.com
#151.101.100.133 avatars5.githubusercontent.com
#151.101.100.133 avatars6.githubusercontent.com
#151.101.100.133 avatars7.githubusercontent.com
#151.101.100.133 avatars8.githubusercontent.com
3、可以直接通路http://github.com
4、部分情況可能需要在cmd輸入ipconfig /flushdns 重新整理
為人:謙遜、激情、博學、審問、慎思、明辨、 笃行
學問:紙上得來終覺淺,絕知此事要躬行