以win10为例
话不多说简单粗暴
1.键盘上“开始”+X
2.在管理员界面中输入 notepad 打开记事本
3.打开记事本
4.输入 C:\Windows\System32\drivers\etc
右下角选择所有文件,出现hosts文件,选中它打开
5.粘贴下面的代码到文件里的末端
http://github.com 204.232.175.94
http://gist.github.com 107.21.116.220
http://help.github.com 207.97.227.252
http://nodeload.github.com 199.27.76.130
http://raw.github.com 107.22.3.110
http://status.github.com 204.232.175.78
http://training.github.com 207.97.227.243 http://www.github.com
Ctrl+s保存关闭即可
5.打开cmd并输入下面的命令刷新DNS
ipconfig /flushdns
这篇文章到此结束,此时在打开github就非常快了