Notes

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 git@bitbucket.org:kimbaudi/musicstore.git
  1. Add GitHub repo as remote branch
cd musicstore
git remote add upstream git@github.com:kimbaudi/MusicStore.git
  1. Push to remote branch
git push upstream master
git push --tags upstream
  1. Delete old repo on Bitbucket
Source

How to migrate from Bitbucket to GitHub


ChromeEdgeFirefoxOpera

© 2021 paulkode.com. All rights reserved.