I am trying to follow along Michael Hartl's Rails tutorial but I've run across an error.
I signed up on Github and issued a new SSH key and made a new repository. But when I enter the next line into the terminal I get the following error:
Parkers-MacBook-Pro:.ssh ppreyer$ git remote add origin git@github.com:ppreyer/first_app.git
fatal: remote origin already exists.
Just wondered if anybody else has run across this problem?
First check To see how many aliases you have and what are they, you can initiate this command git remote -v
Then see in which repository you are in then try git remote set-url --add [Then your repositpory link] git push -u origin master
if you already add project for another storage, like you upload to github and then you upload to bitbucket then it shows this type of Error.
How to remove Error: delete git-hub file in your project and then repeat the following steps...
In Short,
Worked !
Cheers!