Skip to content

Instantly share code, notes, and snippets.

@saymondamasio
Last active February 17, 2023 11:55
Show Gist options
  • Select an option

  • Save saymondamasio/5d30c1ca977f5ebe697cbcbd7f3287c0 to your computer and use it in GitHub Desktop.

Select an option

Save saymondamasio/5d30c1ca977f5ebe697cbcbd7f3287c0 to your computer and use it in GitHub Desktop.
Migrate Bitbucket to Github
# Clona o repositorio
git clone --mirror <BITBUCKET_URL>
# Adicona o repo remoto do github
git remote add upstream <GITHUB_URL>
# Joga a master no repo remoto do github
git push upstream master
# Joga as tags no repo remoto do github
git push --tags upstream
# Seta o origin para o repo remoto do github
git remote set-url origin <GITHUB_URL>
# Espelha as branchs para o repo remoto
git push --mirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment