首先需要用的一個網址:http://ping.chinaz.com/github.com,用來ping

步驟:
1.現在網站上輸入網址,進行ping檢測。

2.找到ping時間最短的ip(比如響應時間為:<1)

3.打開windos下的 C:\Windows\System32\drivers\etc

4.復制一份hosts到桌面上
5.用記事本打開桌面上的hosts進行編輯,在最后添加信息 ip github.com

6.編輯完之后,替換 C:\Windows\System32\drivers\etc 中的hosts
7.刷新DNS
在cmd中輸入命令
ipconfig /flushdns #清除DNS緩存內容。

現在就可以很快的訪問Github了
