tj.git-extras/man/git-alias.md
spacewander 76e0dfef97 replace visionmedia/git-extras to tj/git-extras
Although Github reserves the 'visionmedia' user space(a visit to there
will be redirected to 'tj'), it's better to
rename the links from visionmedia/git-extras to tj/git-extras
2014-11-06 17:12:01 +08:00

57 lines
1.1 KiB
Markdown

git-alias(1) -- Define, search and show aliases
===============================================
## SYNOPSIS
`git-alias` [<alias-name> <command>]|[<search-term>]
## DESCRIPTION
## OPTIONS
<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.
## EXAMPLES
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>
## AUTHOR
Written by Jonhnny Weslley &lt;<jw@jonhnnyweslley.net>&gt;
## REPORTING BUGS
&lt;<https://github.com/tj/git-extras/issues>&gt;
## SEE ALSO
&lt;<https://github.com/tj/git-extras>&gt;