1、ping github網站(Ping github.com),ping不通,說明dns無法解析導致的
2.打開C:\Windows\System32\drivers\etc\hosts,在文件末尾添加如下內容,並保存:
192.30.255.112 github.com git
185.31.16.184 github.global.ssl.fastly.net
3.重啟cmd窗口,繼續ping一下github.com,本機已經能夠正常解析github.com這個域名。
4.打開瀏覽器重新輸入https://github.com/可以訪問,親測有效哦。