Skip to content

Instantly share code, notes, and snippets.

@peterkeen
Created February 2, 2011 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterkeen/808562 to your computer and use it in GitHub Desktop.
Save peterkeen/808562 to your computer and use it in GitHub Desktop.
Add this to your [aliases] section in ~/.gitconfig
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