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  git-alias  <search-pattern> git-alias <alias-name> <command>
10       git-alias   [--global]   git-alias   [--local]   git-alias   [--global]
11       <search-pattern>   git-alias   [--local]   <search-pattern>   git-alias
12       [--global]  <alias-name>  <command>  git-alias  [--local]  <alias-name>
13       <command>
14

DESCRIPTION

16       List all aliases, show one alias, or set one (global or local) alias.
17

OPTIONS

19       --global
20
21       Show or create alias in the system config
22
23       --local
24
25       Show or create alias in the repository config
26
27       <search-pattern>
28
29       The pattern used to search aliases.
30
31       <alias-name>
32
33       The name of the alias to create.
34
35       <command>
36
37       The command for which you are creating an alias.
38

EXAMPLES

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

AUTHOR

69       Written by Jonhnny Weslley <jw@jonhnnyweslley.net>
70

REPORTING BUGS

72       <https://github.com/tj/git-extras/issues>
73

SEE ALSO

75       <https://github.com/tj/git-extras>
76
77
78
79                                September 2023                    GIT-ALIAS(1)
Impressum