本方法只适用于window系统
1、在电脑中找到如下路径:C:\Windows\System32\drivers\etc
2、打开hosts文件,并在文件中追加以下内容:
192.30.253.112 github.com 192.30.253.119 gist.github.com 151.101.100.133 assets-cdn.github.com 151.101.100.133 raw.githubusercontent.com 151.101.100.133 gist.githubusercontent.com 151.101.100.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 192.30.255.112 github.com git 185.31.16.184 github.global.ssl.fastly.net
3、保存退出后打开github即可访问
进去后就是这样啦,祝各位好运,都可以学习到新知识!!!