Last active
August 29, 2015 13:56
-
-
Save regis-leray/8848287 to your computer and use it in GitHub Desktop.
Import git repository with 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 [email protected]:flyway/flyway.git | |
cd flyway | |
# move into another folder with rewriting the history | |
git filter-branch -f --prune-empty --tree-filter 'mkdir -p .root;mv * .root;mv .root root' -- --all | |
git clone [email protected]:regis-leray/flyway.git regis-flyway | |
cd regis-flyway/ | |
git remote add origin-flyway ../flyway | |
git fetch origin-flyway | |
git checkout -b flyway-branch origin-flyway/master | |
git checkout master | |
git merge flyway-branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment