1GIT-ALIAS(1) Git Extras GIT-ALIAS(1)
2
3
4
6 git-alias - Define, search and show aliases
7
9 git-alias git-alias <search-pattern> git-alias <alias-name> <command>
10
12 List all aliases, show one alias, or set one (global) alias.
13
15 <search-pattern>
16
17 The pattern used to search aliases.
18
19 <alias-name>
20
21 The name of the alias to create.
22
23 <command>
24
25 The command for which you are creating an alias.
26
28 Defining a new alias:
29
30
31
32 $ git alias last "cat-file commit HEAD"
33
34
35
36 Providing only one argument, git-alias searches for aliases matching
37 the given value:
38
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
50 $ git alias
51 s = status
52 amend = commit --amend
53 rank = shortlog -sn --no-merges
54 whatis = show -s --pretty=´tformat:%h (%s, %ad)´ --date=short
55 whois = !sh -c ´git log -i -1 --pretty="format:%an <%ae>
56
57
58
60 Written by Jonhnny Weslley <jw@jonhnnyweslley.net>
61
63 <https://github.com/tj/git-extras/issues>
64
66 <https://github.com/tj/git-extras>
67
68
69
70 October 2017 GIT-ALIAS(1)