Created
April 20, 2016 08:35
-
-
Save mattwynne/313d595b92c95bd7efe2e09b2d517af0 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