Created
May 9, 2016 10:41
-
-
Save mattwynne/d57818e3bec7427c464a4c47e0af553d to your computer and use it in GitHub Desktop.
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/bash | |
set -e | |
branch=`git name-rev --name-only head` | |
git checkout master | |
git cherry-pick $branch | |
git checkout $branch | |
git rebase master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment