Created
February 13, 2020 13:23
-
-
Save jefrnc/853f76e11ebcf363a4c14e54c6ad6a50 to your computer and use it in GitHub Desktop.
Moving Git repository content to another repository preserving history
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
git clone --mirror <url_of_old_repo> | |
cd <name_of_old_repo> | |
git remote add new-origin <url_of_new_repo> | |
git push new-origin --mirror |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment