April 30, 2015

Changing the remote repository in git

I needed to move a project from Bitbucket to Github.

I was expecting a little dance to be made there, but it was pretty straightforward:

In a terminal, at the directory where I have my project, just did a

git remote add origin https://github.com/your_account_name/your_repository_name.git