Last active
August 29, 2015 14:15
-
-
Save wmakeev/99eab07ad08995e400fb to your computer and use it in GitHub Desktop.
Several origins
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
# http://habrahabr.ru/post/250645/ | |
# rename origin remote | |
git remote rename origin github | |
# add the gitlab remote (for the love of everything that’s holy, use ssh) | |
git remote add bitbucket <remote link for bitbucket> | |
# push existing code to new remote | |
git push -u bitbucket —all | |
# let’s magic | |
git config -e | |
# add this in the file | |
[remote “origin”] | |
url = [email protected]:username/reponame.git | |
url = <remote link for bitbucket> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment