github没有与名字关联的地址

我一直在github上遇到问题,我在github上创建了一个新的存储库,然后从本地机器上尝试将我的代码推送到github:

git remote add origin git@github.com:tmi/logger.git
fatal: remote origin already exists

git push origin master
ssh: github.com:uhdyi: no address associated with name
fatal: the remote end hung up unexpectedly

ssh git -v
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Fed 2007
ssh: git: no address associated with name

ssh git@github.com
Enter passphrase for key '/c/Documents and Settings/tmi/.ssh/id_rsa':
Error: HI, tmi! you've successfullly authenticated, but GitHub doesn not provide shell access
connection to github.com closed

git push origin master
ssh: github.com:uhdyi: no address associated with name
fatal: the remote end hung up unexpectedly

这里有什么问题? 谢谢!


看:

fatal: remote origin already exists

您已拥有远程指定的origin ,并且仍使用旧的无效网址。 打开.git/config并更改origin远程的URL,或使用git remoteset-url子命令:

$ git remote set-url origin git@github.com:tmi/logger.git

我有没有地址与名称问题相关联,并在搜索后是一个DNS问题。 DNS在机器上只是错了,它找不到远程git存储库的IP地址。


错误如何?

ssh git -v
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Fed 2007
ssh: git: no address associated with name

与...有联系

fatal: remote origin already exists?

也不能解决这个问题

git remote add someothername git@github.com:tmi/logger.git
链接地址: http://www.djcxy.com/p/92209.html

上一篇: github no address associated with name

下一篇: Trouble installing private github repository using pip