-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
88 lines (87 loc) · 2.1 KB
/
gitconfig
File metadata and controls
88 lines (87 loc) · 2.1 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[core]
abbrev = 12
autocrlf = input # `input` for Linux or Mac, `true` for Windows
commitgraph = true
excludesfile = ~/.gitignore.global
pager = delta --tabs 8
[absorb]
autoStageIfNothingStaged = true
maxStack = 20
[alias]
au = add -u
bb = !better-git-branch # run external script
bl = blame
bli = blame -w -C -C -C # ignore white space and line moved in the same commit
br = branch
ci = commit
cia = commit --amend
co = checkout
cp = cherry-pick
dh = diff HEAD
dhh = diff HEAD~
dw = diff --word-diff
fix = log --pretty=fixes -1
lg = log
rb = rebase
ref= reflog --pretty=reflog
st = status
[am]
threeWay = true
[branch]
sort = -committerdate
[color]
ui = auto
[commit]
verbose = true
[diff]
colorMoved = default
colorMovedWS = allow-indentation-change
[http]
cookiefile = ~/.gitcookies
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only
[merge]
conflictstyle = zdiff3
[pull]
rebase = true
[rebase]
autoStash = true
[rerere]
enabled = true
[status]
submodulesummary = 1
[pretty]
fixes = "%C(auto)Fixes: %h (\"%s\")%C(reset)"
reflog = "%C(auto)%h %C(brightgreen)%<(10)%gd %C(brightyellow)%ci %C(auto)%s %d%C(reset)"
onelinev2 = "%C(auto)%h %s %d%C(reset)"
onelinev3 = "%C(auto)%h %C(brightgreen)%<(20,trunc)%an %C(brightyellow)%ci %C(auto)%s %d%C(reset)"
[delta]
syntax-theme = Monokai Extended
line-numbers = true
navigate = true
side-by-side = true
file-style = yellow
file-decoration-style = yellow ol ul
hunk-header-decoration-style = 243 box ul
line-numbers-minus-style = 167
line-numbers-plus-style = 114
line-numbers-left-style = 243
line-numbers-right-style = 243
plus-style = syntax "#002800"
minus-style = syntax "#300000"
map-styles = \
bold purple => orchid, \
bold cyan => skyblue, \
bold blue => dodgerblue, \
bold yellow => khaki
[maintenance]
auto = true
# automatic maintenance shall detach and run in background
autoDetach = true
[maintenance "prefetch"]
enabled = false
; Include local configs in the end to take precedence
[include]
path = ~/.gitconfig.local