github没有与名字关联的地址 [英] github no address associated with name

查看:105
本文介绍了github没有与名字关联的地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



 

这些天我一直有github问题,我在github上创建了一个新的存储库,然后从本地机器上尝试推送我的代码到github: >
git remote add origin git@github.com:tmi / logger.git
致命:远程原点已存在

git push原点大师
ssh:github。 com:uhdyi:没有与名称相关的地址
致命:远程端意外挂起

ssh git -v
OpenSSH_4.6p1,OpenSSL 0.9.8e 23 Fed 2007
ssh:git:没有与名称关联的地址

ssh git@github.com
输入密钥'/ c / Documents and Settings / tmi / .ssh / id_rsa'的密码:
错误:HI,tmi!你已经成功通过身份验证,但GitHub没有提供shell访问
连接到github.com关闭

git push origin master
ssh:github.com:uhdyi:没有地址关联名称为
致命:远程终端意外挂起

这里有什么问题?谢谢!

解决方案

$ c> fatal:remote origin已存在

您已经有一个名为来源,它仍然使用旧的无效网址。打开 .git / config 并更改 origin 远程的URL,或者使用 git remote

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


I kept having problem with github these days, i created a new repository on github, then from local machine I tried to push my code to 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

what's wrong here? Thanks!

解决方案

Look:

fatal: remote origin already exists

You already have a remote named origin, and it's still using the old, invalid URL. Open up .git/config and change the URL for the origin remote, or use the set-url subcommand for git remote:

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

这篇关于github没有与名字关联的地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆