Created
April 3, 2013 08:17
-
-
Save michael-simons/5299398 to your computer and use it in GitHub Desktop.
Move some specific files from one git repository into a new one preserving the 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
cd ~/the/old/repo | |
find -E . -regex ".*(File1|File2)\.java" | xargs git log --pretty=email --patch-with-stat --reverse | (cd ~/the/new/repo && git am) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment