Created
April 13, 2012 11:41
-
-
Save HansCz/2376160 to your computer and use it in GitHub Desktop.
Git - cherry-pick range
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
# 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