Skip to content

Instantly share code, notes, and snippets.

@h0h0h0
Created May 11, 2012 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h0h0h0/2662011 to your computer and use it in GitHub Desktop.
Save h0h0h0/2662011 to your computer and use it in GitHub Desktop.
cherry picker
#!/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