1GIT-ALIAS(1) Git Extras GIT-ALIAS(1)
2
3
4
6 git-alias - Define, search and show aliases
7
9 git-alias
10 git-alias <search-pattern>
11 git-alias <alias-name> <command>
12
14 List all aliases, show one alias, or set one (global) alias.
15
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
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
59 Written by Jonhnny Weslley <jw@jonhnnyweslley.net>
60
62 <https://github.com/tj/git-extras/issues>
63
65 <https://github.com/tj/git-extras>
66
67
68
69 August 2021 GIT-ALIAS(1)