Created
April 9, 2019 21:01
-
-
Save yonixw/2ec7138ba04123784ef03f18ce78065f to your computer and use it in GitHub Desktop.
Merging git repos into same repo and saving histories
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 filter-branch -f --tree-filter "mkdir Citadel.Core.Windows && ls | grep -v Citadel.Core | xargs -d '\n' mv -t Citadel.Core.Windows" HEAD | |
git filter-branch -f --tree-filter "if [ -f '.gitignore' ]; then mv '.gitignore' 'Citadel.Core.Windows/.gitignore'; fi" HEAD | |
git filter-branch -f --tree-filter "if [ -f '.travis.yml' ]; then mv '.travis.yml' 'Citadel.Core.Windows/.travis.yml'; fi" HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment