github - Git error message "remote origin already exists" -
i created repo on github, tried connect , got error:
$ git remote add origin https://github.com/jatalamo/heroku-test-site.git fatal: remote origin exists.
this did not happen yesterday when created different repo. can me figure out how push existing repo on gibash? i'm total newbie!
the reason you're getting remote origin exist
because remote name of origin
exists. can check typing git remote -v
show remotes of git repo. should see this:
origin https://github.com/jatalamo/heroku-test-site.git (fetch) origin https://github.com/jatalamo/heroku-test-site.git (push)
the command clone github repo git clone https://github.com/jatalamo/heroku-test-site.git <folder_name>
. if remote called origin
automatically setup you, therefore not need add https://github.com/jatalamo/heroku-test-site.git
remote manually typing git remote add origin https://github.com/jatalamo/heroku-test-site.git
.
the case in need type git remote add origin https://github.com/jatalamo/heroku-test-site.git
when not cloning github instead typed git init
on local machine , there not remote, you'll have manually add github url remote called origin
or whatever other name like.
you should able pull , push using these commands:
git pull origin master git push origin master
Comments
Post a Comment