话不多说直接开始教程:
1.打开C:\Windows\System32\drivers\etc 路径下的的hosts文件
在hosts文件内加上如下内容并保存
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
如果无法编辑,鼠标右键打开文件属性将“只读”取消勾选并应用保存
Win+R打开运行框,输入cmd打开命令窗口,输入ipconfig/flushdns命令会提示以下信息
然后就可以愉快的访问Github了!