Skip to content

Instantly share code, notes, and snippets.

@ebouchut
Created August 16, 2012 12:21

Revisions

  1. ebouchut created this gist Aug 16, 2012.
    5 changes: 5 additions & 0 deletions multi_cherry_pick
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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