Created
June 10, 2010 23:10
-
-
Save smerritt/433776 to your computer and use it in GitHub Desktop.
git bulkpick
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/sh | |
# Author: Sam Merritt <[email protected]> | |
# | |
# Usage: git bulkpick BRANCH | |
# | |
# Cherry-pick all the changes that are on BRANCH. This sets you as the | |
# committer. | |
BRANCH=$1 | |
set -e | |
for sha in `git cherry HEAD "$BRANCH" | cut -d " " -f 2`; do | |
git cherry-pick $sha | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment