Skip to content

Instantly share code, notes, and snippets.

@1c7
Created February 10, 2019 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1c7/06355db3a77141c68772df743cb84080 to your computer and use it in GitHub Desktop.
Save 1c7/06355db3a77141c68772df743cb84080 to your computer and use it in GitHub Desktop.
Gitlab remote to Github remote & vice versa
## to Gitlab
cd existing_repo
git remote rename origin old-origin
git remote add origin git@gitlab.com: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