Created
December 22, 2011 20:53
-
-
Save dorkitude/1511815 to your computer and use it in GitHub Desktop.
git convenience functions from my Mac's .profile
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
# git convenience functions | |
function grso() { | |
git remote show origin ; | |
} | |
function mkremotebranch() { | |
git branch "$@" ; | |
git checkout "$@" ; | |
git push -u origin "$@" ; | |
} | |
function rmremotebranch() { | |
git branch -d "$@" ; | |
git push origin ":$@" ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment