Define, search and show aliases
git-alias [<alias-name> <command>]|[<search-term>]
<alias-name>
The name of the alias to create.
<command>
The command for which you are creating an alias.
<search-term>
The pattern used for search aliases.
Defining a new alias:
$ git alias last "cat-file commit HEAD"
Providing only one argument, git-alias searchs for aliases matching the given value:
$ git alias ^la last = cat-file commit HEAD
git-alias will show all aliases if no argument is given:
$ git alias s = status amend = commit --amend rank = shortlog -sn --no-merges whatis = show -s --pretty=\'tformat:%h (%s, %ad)\' --date=short whois = !sh -c \'git log -i -1 --pretty="format:%an <%ae>
Written by Jonhnny Weslley <[email protected]>
<https://github.com/visionmedia/git-extras/issues>
<https://github.com/visionmedia/git-extras>