git推不找主机 [英] git push not finding host
本文介绍了git推不找主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图推进一个我已经推到的远程回购,但现在我得到一个我不明白的错误。
git push
ssh:无法解析主机名github.com:节点名或服务名已提供或未知
致命:无法从远程存储库读取。
请确保您拥有正确的访问权限
并存在存储库。
然后我做了一个 git status
关于分支master
您的分支在2次提交之前位于'origin / master'之前。
(使用git push发布你的本地提交)
没有提交,工作目录干净
然后我运行 git remote -v
(getch@github.com):< username> /< projectName> .git(fetch)
origin git@github.com:< username> /< projectName> .git(push)
我非常感谢一些指导。我的直觉告诉我,这不是一个混帐问题,但一些网络问题。任何帮助表示赞赏。
解决方案
显然苹果的 discoveryd
过程存在一些错误。我阅读了此处和 Here
我杀了这个过程,并且一切正常。
I am attempting to push to a remote repo that I have already been pushing to, however now I am getting an error I don't understand.
git push
ssh: Could not resolve hostname github.com: 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.
Then I did a git status
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
Then I ran git remote -v
origin git@github.com:<username>/<projectName>.git (fetch)
origin git@github.com:<username>/<projectName>.git (push)
I would greatly appreciate some guidance. My gut tells me this isn't a git issue but some networking issue. Any help is appreciated.
解决方案
Apparently there is some bug with the Apple's discoveryd
process. I read about the problem Here and Here
I killed the process, and everything worked fine.
这篇关于git推不找主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文