GitHub now offers free private repos, so I will be migrating my projects over from Bitbucket. Mostly to test out the CI/CD integration with Heroku.

Here is a quick guide on how I did that:

  • git pull
  • Create your new repository on GitHub
  • git remote add new-origin <new repository URL>
  • git push --all new-origin
  • Verify that entire history has been pushed
  • Each local needs to run the following:
    • git remote remove origin
    • git remote rename new-origin origin
    • git branch --set-upstream-to=origin/master