Created
June 18, 2019 11:16
-
-
Save adidonato/7bdf4a4a8c5d309195206a571335f1f9 to your computer and use it in GitHub Desktop.
split git branches
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 checkout -b <BRANCH-NAME-NEW> start^ | |
for commit in $(git rev-list --reverse <start-sha-commit>..<end-sha-commit>); do | |
git checkout $commit -- ((LIST OF FILES TO BRANCH OUT)) | |
git commit -C $commit | |
done(base) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment