Created
November 17, 2015 09:31
-
-
Save voidius/34a9af1149bba33b7e4e to your computer and use it in GitHub Desktop.
GIT repo migration
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 <old_repo_url> | |
$ git remote rename origin origin-old | |
$ git remote add origin <new_repo_url> | |
$ git push --all origin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment