Skip to content

Instantly share code, notes, and snippets.

@anscii
Created March 21, 2013 09:09
Show Gist options
  • Save anscii/5211712 to your computer and use it in GitHub Desktop.
Save anscii/5211712 to your computer and use it in GitHub Desktop.
Mass git cherry-pick
#!/bin/sh
for BRANCH in br1 br2
do
git checkout $BRANCH
git cherry-pick master
git push origin $BRANCH
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment