Skip to content

Instantly share code, notes, and snippets.

@daskelly
Created June 20, 2017 17:17
Show Gist options
  • Save daskelly/f01ab138ab13fe1fe6f18126257a0250 to your computer and use it in GitHub Desktop.
Save daskelly/f01ab138ab13fe1fe6f18126257a0250 to your computer and use it in GitHub Desktop.
Migrating from bitbucket to github

Migrating from bitbucket to github

When migrating a repo from bitbucket to github, I like to take a simple and straightforward approach:

git remote set-url origin git@github.com:USERNAME/REPONAME.git

This example assumes that a remote branch named origin points to bitbucket, and you are resetting that URL to now point to github. Then you can git push to github.

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