Created
October 22, 2012 16:00
-
-
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
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
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