Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

github no address associated with name

Tags:

git

github

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 [email protected]: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 [email protected]
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!

like image 549
ohana Avatar asked Jul 19 '10 18:07

ohana


1 Answers

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 [email protected]:tmi/logger.git
like image 103
mipadi Avatar answered Sep 18 '22 01:09

mipadi