Skip to content

Instantly share code, notes, and snippets.

@sdurandeu
Last active October 14, 2023 10:06
Show Gist options
  • Save sdurandeu/1d710081009bbd2f8e6c13feb3ec2321 to your computer and use it in GitHub Desktop.
Save sdurandeu/1d710081009bbd2f8e6c13feb3ec2321 to your computer and use it in GitHub Desktop.
GitTips

Nice Hacks

Migrate from Bitbucket to GitHub

  1. Make sure your SSH public key is here: https://github.com/settings/keys (you will find a .pub file in ~/.ssh in your machine)
  2. Make sure you have custom routing for your new organization email (https://github.com/settings/notifications)
  3. Run git config --global user.email and git config --global user.name to make sure your name and email are correct
  4. Use the GitHub Import tool (temporarily remove 2-factor auth from BitBucket account) as this will migrate all the branches/tags, etc.
  5. Use these commands to point your local repo to the new remote:
git remote rename origin bitbucket
git remote add origin [email protected]:feebris/XXXX.git
git fetch origin
git branch master --set-upstream-to origin/master
git branch -vv --> to check all the branches are pointing to the correct origin

Git Clients

Git Tips

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment