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文件,并以记事本格式打开
相关文章
相关标签/搜索