Skip to content

Instantly share code, notes, and snippets.

@charliepark
Created October 22, 2012 16:00
Show Gist options
  • Save charliepark/3932240 to your computer and use it in GitHub Desktop.
Save charliepark/3932240 to your computer and use it in GitHub Desktop.
An alias for quickly merging your branch's changes to master and pushing it to the remote origin
alias gpm="temp=$(git branch 2> /dev/null | grep '^\*' | sed 's/^\*\ //'); git checkout master; git merge $temp; git push; git checkout $temp;" # mnemonic: git push master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment