Last active
February 17, 2023 11:55
-
-
Save saymondamasio/5d30c1ca977f5ebe697cbcbd7f3287c0 to your computer and use it in GitHub Desktop.
Migrate Bitbucket to Github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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