-
-
Save Jildor/e32325d86177415b4244936202a0c182 to your computer and use it in GitHub Desktop.
Cherry pick multiple commits
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
Cherry pick the commits from a through z (assuming SHA1 a is older than z) | |
git rev-list --reverse --topo-order a^..z | xargs -n 1 git cherry-pick | |
The below code does not work as it will squash all the commits (a..z) in a single one. | |
git cherry-pick a..z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment