Created
August 29, 2014 07:01
-
-
Save modamoda/94a52fe50d87e506d410 to your computer and use it in GitHub Desktop.
Git migration preserving history
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
# http://stackoverflow.com/questions/17371150/moving-git-repository-content-to-another-repository-preserving-history | |
git clone NEW_REPO | |
cd NEW_REPO | |
git checkout master | |
git remote add old_git_remote OLD_REPO | |
git fetch old_git_remote | |
git merge old_git_remote/master | |
git remote rm old_git_remote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment