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
| $!/usr/bin/env sh | |
| branch=`git symbolic-ref --short HEAD` | |
| git checkout master | |
| commits=`git log --pretty="%H" --reverse -- $*` | |
| git checkout $branch | |
| for commit in $commits; do | |
| git cherry-pick $commit | |
| done |