1GIT-ALIAS(1)                      Git Extras                      GIT-ALIAS(1)
2
3
4

NAME

6       git-alias - Define, search and show aliases
7

SYNOPSIS

9       git-alias
10       git-alias <search-pattern>
11       git-alias <alias-name> <command>
12

DESCRIPTION

14       List all aliases, show one alias, or set one (global) alias.
15

OPTIONS

17       <search-pattern>
18
19       The pattern used to search aliases.
20
21       <alias-name>
22
23       The name of the alias to create.
24
25       <command>
26
27       The command for which you are creating an alias.
28

EXAMPLES

30       Defining a new alias:
31
32
33           $ git alias last "cat-file commit HEAD"
34
35
36
37       Providing  only  one  argument, git-alias searches for aliases matching
38       the given value:
39
40
41           $ git alias ^la
42           last = cat-file commit HEAD
43
44
45
46       git-alias will show all aliases if no argument is given:
47
48
49           $ git alias
50           s = status
51           amend = commit --amend
52           rank = shortlog -sn --no-merges
53           whatis = show -s --pretty=´tformat:%h (%s, %ad)´ --date=short
54           whois = !sh -c ´git log -i -1 --pretty="format:%an <%ae>
55
56
57

AUTHOR

59       Written by Jonhnny Weslley <jw@jonhnnyweslley.net>
60

REPORTING BUGS

62       <https://github.com/tj/git-extras/issues>
63

SEE ALSO

65       <https://github.com/tj/git-extras>
66
67
68
69                                  August 2021                     GIT-ALIAS(1)
Impressum