win10下Could not resolve host: github.com問題解決

在pull和push的時候報錯: Could not resolve host: github.com 解決方法: 1.win+r,輸入cmd進入命令行; 2.輸入ping github.com 3.進到git的安裝目錄下,在進入etc目錄,找到hosts文件,拖到桌面以記事本打開,在最後一行加入: 192.30.253.112 github.com 保存之後,拖回原位置並替換原hosts文件。
相關文章
相關標籤/搜索