gitee 提交报错 Could not resolve hostname

最近在提交gitee的时候报错:

ssh: Could not resolve hostname ssh.gitee.com: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

只需要在 本地 hosts 文件,做个映射

首先在 https://tool.lu/ip/ 查找 gitee 的ip地址,比如这里 180.76.199.13

然后在 hosts 文件配置:180.76.199.13 gitee.com

posted @ 2025-04-28 19:14  随遇而安jason  阅读(119)  评论(0)    收藏  举报