Skip to content

Instantly share code, notes, and snippets.

@smerritt
Created June 10, 2010 23:10
Show Gist options
  • Save smerritt/433776 to your computer and use it in GitHub Desktop.
Save smerritt/433776 to your computer and use it in GitHub Desktop.
git bulkpick
#!/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