Skip to content

Instantly share code, notes, and snippets.

@HansCz
Created April 13, 2012 11:41
Show Gist options
  • Save HansCz/2376160 to your computer and use it in GitHub Desktop.
Save HansCz/2376160 to your computer and use it in GitHub Desktop.
Git - cherry-pick range
# http://stackoverflow.com/questions/1670970/how-to-cherry-pick-multiple-commits
# 1. checkout the branch you want to cherry-pick to
# 2. in bash do:
git rev-list --reverse [first sha1 hash in range]..[last sha1 hash in range] | xargs -n 1 git cherry-pick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment