Created
December 17, 2014 21:16
-
-
Save juanformoso/90103e83b24a66196a77 to your computer and use it in GitHub Desktop.
How to migrate git from one server to another
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
Assuming you use origin as the name of your remote | |
git pull | |
git remote rm origin | |
git remote add origin [new_url] | |
git push -f --tags origin refs/heads/*:refs/heads/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment