Skip to content

Instantly share code, notes, and snippets.

@titanous
Created July 5, 2011 18:13
Show Gist options
  • Select an option

  • Save titanous/1065455 to your computer and use it in GitHub Desktop.

Select an option

Save titanous/1065455 to your computer and use it in GitHub Desktop.
#!/bin/sh
git checkout master
git fetch mainline
git rebase mainline/master
git checkout production
git merge mainline/production
git merge master
git push mainline production
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment