Created
September 11, 2012 20:33
-
-
Save skyebook/3701793 to your computer and use it in GitHub Desktop.
Migrate to new git repository and keep 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
# Go to the new repository | |
cd /path/to/new | |
# Add the original repository as a remote | |
git remote add original /path/to/old | |
# Get the original's branch and merge it into yours | |
git fetch original/master | |
git merge original/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment