问题描述:
git 连接远程仓库出错:
ssh: Could not resolve hostname gitee: 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.
原因分析:
在网上找了许多方案都是在windos / system32 / driver /etc/ hosts 文件末尾添加 gitxx.com的地址 gitxx.com
但是小编 添加后还是不行 但是自己 ssh -T git@gitee.com 却能的到正常的回应
早了以上午的资料 改了一堆东西 都无效 都想重装了
但是 想到重装太麻烦 于是又继续 认真的看了一下自己的错误 ssh: Could not resolve hostname gitee: Name or service not known -》hostname gitee: 原来是自己的配置出了问题主机应该是 gitee.com
自己的粗心大意 仓库链接地址配置错了
只有把 .git 下的config 里面的url 改成 url = git@gitee.com:every-morning/animenet.git
细节决定成败