Created
May 11, 2012 19:43
-
-
Save h0h0h0/2662011 to your computer and use it in GitHub Desktop.
cherry picker
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
#!/bin/bash | |
echo "usage ./cherrypick <commitnum or range>\n" | |
echo "About to pick commits: $1" | |
for commit in $(git log --reverse --pretty=%H --no-merges $1); | |
do | |
git cherry-pick $commit | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment