Git - Move GitHub repo

author: Paul Kim

categories: git, github

tags: git, github

Move GitHub repo from BitBucket to GitHub (or vice versa)

  1. Create new repo on GitHub
  2. Clone existing repo on Bitbucket
git clone
  1. Add GitHub repo as remote branch
cd musicstore
git remote add upstream
  1. Push to remote branch
git push upstream master
git push --tags upstream
  1. Delete old repo on Bitbucket

How to migrate from Bitbucket to GitHub


© 2021 All rights reserved.