mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
* Update git-alias.md: add brs to prevent incorrect line behavior currently these all appear on one line, in the rendered markdown viewer and also in the man page. That isn't what's wanted. What's wanted is for each to be on its own line, which this change implements, using the strategy I found in git-bulk. * run make on git-alias
74 lines
1.6 KiB
Markdown
74 lines
1.6 KiB
Markdown
git-alias(1) -- Define, search and show aliases
|
|
===============================================
|
|
|
|
## SYNOPSIS
|
|
|
|
`git-alias` <br>
|
|
`git-alias` <search-pattern> <br>
|
|
`git-alias` <alias-name> <command> <br>
|
|
`git-alias` [--global] <br>
|
|
`git-alias` [--local] <br>
|
|
`git-alias` [--global] <search-pattern> <br>
|
|
`git-alias` [--local] <search-pattern> <br>
|
|
`git-alias` [--global] <alias-name> <command> <br>
|
|
`git-alias` [--local] <alias-name> <command> <br>
|
|
|
|
## DESCRIPTION
|
|
|
|
List all aliases, show one alias, or set one (global or local) alias.
|
|
|
|
## OPTIONS
|
|
|
|
--global
|
|
|
|
Show or create alias in the system config
|
|
|
|
--local
|
|
|
|
Show or create alias in the repository config
|
|
|
|
<search-pattern>
|
|
|
|
The pattern used to search aliases.
|
|
|
|
<alias-name>
|
|
|
|
The name of the alias to create.
|
|
|
|
<command>
|
|
|
|
The command for which you are creating an alias.
|
|
|
|
|
|
## EXAMPLES
|
|
|
|
Defining a new alias:
|
|
|
|
$ git alias last "cat-file commit HEAD"
|
|
|
|
Providing only one argument, `git-alias` searches 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 <<jw@jonhnnyweslley.net>>
|
|
|
|
## REPORTING BUGS
|
|
|
|
<<https://github.com/tj/git-extras/issues>>
|
|
|
|
## SEE ALSO
|
|
|
|
<<https://github.com/tj/git-extras>>
|