【发布时间】:2014-01-05 17:41:58
【问题描述】:
我尝试做git pull --rebase,但出现以下错误:
ssh: Could not resolve hostname git: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我尝试做git remote -v 并且正确列出了来源。
我该如何解决这个错误?
【问题讨论】:
-
您能否显示您的
git remote -v命令的输出,以便我们确保它是正确的?有时会忽略简单的事情(错别字)。另外,你能ping git吗? ping 能找到主机吗? -
ping git 不起作用。
-
那么这看起来像是一个网络问题与一个 git 问题。也许如果您使用完全限定的主机名?
-
顺便说一句,
git是您的服务器名称吗?如果不是,那么遥控器设置不正确。 -
你能发布
git remote -v的输出吗?或者不是,如果 2 年后你不再关心:p
标签: git