Skip to content

Instantly share code, notes, and snippets.

@mattwynne
Created May 9, 2016 10:41
Show Gist options
  • Save mattwynne/d57818e3bec7427c464a4c47e0af553d to your computer and use it in GitHub Desktop.
Save mattwynne/d57818e3bec7427c464a4c47e0af553d to your computer and use it in GitHub Desktop.
#!/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