git clone 時報錯,提示 ssh: Could not resolve hostname github.com: Name or service not known

在git clone克隆倉庫代碼時,提示 ssh: Could not resolve hostname github.com: Name or service not known 百度後,解決方法如下: ping github.com 獲取到github.com的ip爲13.xxx.xxx.xxx 在/etc/hosts中添加一行如下: 此文件的路徑如下: 右擊hosts文件,並以記事本格式打開
相關文章
相關標籤/搜索