Last active
October 15, 2020 04:31
-
-
Save jefrnc/ef88628d3f20d146ff787e898c0438f7 to your computer and use it in GitHub Desktop.
Git Repository Transfer Keeping All 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 old-repo-url new-repo | |
cd new-repo | |
git remote remove origin | |
git remote add origin new-repo-url | |
git push --all | |
git push --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment