第一步:登錄網(wǎng)站 https://www.ipaddress.com/ 查 github.com 的 ip, 輸入 github.com 搜索即可;
第二步:找到結(jié)果列表中 github 或 github.com 對應(yīng)的 ip ,如 140.82.114.3 , 復(fù)制過來;
第三步:找到本機(jī)的 hosts 文件,路徑: C:\Windows\System32\drivers\etc\hosts , 用記事本或者其他編輯器打開, 加入以下內(nèi)容
140.82.114.3 github.com
第四步: 打開命令行工具 cmd , 輸入以下命令,回車,刷新本機(jī) dns ;
ipconfig/flushdns
第五步: 重新在瀏覽器中打開 github.com , ok 了。