Skip to content

Instantly share code, notes, and snippets.

@pomle
Last active December 29, 2015 10:19
Show Gist options
  • Save pomle/7656065 to your computer and use it in GitHub Desktop.
Save pomle/7656065 to your computer and use it in GitHub Desktop.
Stabilize script for /bin
#!/bin/bash
TEMP_BRANCH=temp/stabilize_master
git fetch origin master:$TEMP_BRANCH && git checkout $TEMP_BRANCH && git fetch origin testing:testing && git fetch origin stable:stable \
&& git checkout testing && git merge $TEMP_BRANCH \
&& git checkout stable && git merge testing \
&& git branch -d $TEMP_BRANCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment