Let’s say you’re moving from one service to another, to update your origin url use the following command :
$ git remote remove origin $ git remote add origin git@github.com:your_account/repository.git
If you get an error message like this :
You asked me to pull without telling me which branch you
Do the following :
$ git remote rm origin $ git remote add origin git@github.com:your_account/repository.git $ git pull $ git branch --set-upstream master origin/master $ git pull