Created
February 2, 2011 22:10
-
-
Save peterkeen/808562 to your computer and use it in GitHub Desktop.
Add this to your [aliases] section in ~/.gitconfig
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 = "!sh -c '[ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment