Skip to content

Instantly share code, notes, and snippets.

@outsmartin
Created July 3, 2015 07:28
Show Gist options
  • Save outsmartin/5dcce8fd307ee698f482 to your computer and use it in GitHub Desktop.
Save outsmartin/5dcce8fd307ee698f482 to your computer and use it in GitHub Desktop.
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