Linux环境下git错误和解决方案 大宝猫 2019-11-07 1,787 阅读1分钟 一、ssh: Could not resolve hostname ssh.github.com: Name or service not known 解决方案: ping [远程仓库域名] ping git.xxx.com 获取到对应的ip 123.123.123.123 在/etc/hosts文件中末尾加入此域名 vim /etc/hosts hosts文件 git.xxx.com 123.123.123.123 之后进行正常进行git操作