Created
February 10, 2019 10:15
-
-
Save 1c7/06355db3a77141c68772df743cb84080 to your computer and use it in GitHub Desktop.
Gitlab remote to Github remote & vice versa
This file contains 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
## to Gitlab | |
cd existing_repo | |
git remote rename origin old-origin | |
git remote add origin [email protected]:1c7/empty.git | |
git push -u origin --all | |
git push -u origin --tags | |
## Gitlab back to Github | |
cd existing_repo | |
git remote rm origin | |
git remote rename old-origin origin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment