Forked from tommcfarlin/00-generate-ssh-key.txt
Last active
January 29, 2021 00:35
-
-
Save vinvin27/2de6a07b71a10c15f790c492dc496d1d to your computer and use it in GitHub Desktop.
Comment migrer ses dépôts Bitbucket vers Github : Le tuto complet ici https://www.vinvin.dev/migration-de-bitbucket-a-github-le-tuto/
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
$ ssh-keygen -t rsa -b 4096 -C "[email protected]" |
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
$ eval "$(ssh-agent -s)" |
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
$ ssh-add -K ~/.ssh/id_rsa_nom2clef |
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
$ pbcopy < ~/.ssh/id_rsa_nom2clef.pub |
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
$ git clone --mirror https://bitbucket.org/LOGIN_BITBUCKET/mon-depot.git |
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
$ git remote set-url --push origin [email protected]:LOGIN_GITHUB/mon-depot.git |
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
$ git push --mirror |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great !