Skip to content

Instantly share code, notes, and snippets.

@mattwynne
Created April 20, 2016 08:35
Show Gist options
  • Save mattwynne/313d595b92c95bd7efe2e09b2d517af0 to your computer and use it in GitHub Desktop.
Save mattwynne/313d595b92c95bd7efe2e09b2d517af0 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