Created
July 3, 2015 07:28
-
-
Save outsmartin/5dcce8fd307ee698f482 to your computer and use it in GitHub Desktop.
This file contains 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
stagepush() { | |
local current_branch=`git rev-parse --abbrev-ref HEAD` | |
git checkout staging | |
git pull | |
git merge $current_branch -m 'Merged into staging' | |
git push | |
git checkout $current_branch | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment