-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
44 lines (34 loc) · 1.16 KB
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[user]
email = [email protected]
name = username
[push]
default = simple
[alias]
ls = log --graph --pretty=format:\"%C(auto)%h%<(3)%d %s %C(bold blue)(%cr, %an)%Creset%n\" --abbrev-commit --all --find-copies -M --stat
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
la = log --graph --pretty=format:\"%C(auto)%h%<(3)%d %s %C(bold blue)(%cr, %an)%Creset\" --abbrev-commit --all
;log graph files and changes
l = log --stat --abbrev-commit --pretty=oneline --graph -t --cc
;log graph all branches
h = log --oneline --abbrev-commit --branches=* --graph --decorate
;log patch hunk minimum info
lp = log --unified=3 --abbrev-commit --date=relative
;log patch view color words instead of entire lines
lpw = log --unified=1 --abbrev-commit --date=relative --color-words
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan