Skip to content

Instantly share code, notes, and snippets.

@ebouchut
Created August 16, 2012 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ebouchut/3369784 to your computer and use it in GitHub Desktop.
Save ebouchut/3369784 to your computer and use it in GitHub Desktop.
Cherry pick multiple commits
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