-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathgitconfig
More file actions
215 lines (164 loc) · 4.57 KB
/
gitconfig
File metadata and controls
215 lines (164 loc) · 4.57 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# ============================================================================
# Git Configuration
# ============================================================================
# Include local configuration (user, email, signing key, etc.)
[include]
path = ~/.gitconfig.local
# ============================================================================
# Core Settings
# ============================================================================
[init]
templatedir = ~/.git_template
defaultBranch = master
[core]
editor = nvim
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
pager = delta
ignorecase = false
autocrlf = input
untrackedCache = true
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
[color]
ui = true
[help]
autocorrect = 1
# ============================================================================
# User Workflow
# ============================================================================
[pull]
rebase = true
[push]
atomic = true
default = simple
[fetch]
prune = true
pruneTags = true
output = compact
[rebase]
stat = true
abbreviateCommands = true
autosquash = true
autostash = true
[branch]
autosetup = true
autosetuprebase = always
[status]
submoduleSummary = true
[apply]
whitespace = fix
# ============================================================================
# Merge & Conflict Resolution
# ============================================================================
[merge]
summary = true
log = true
status = true
renormalize = true
tool = nvimmerge
conflictstyle = diff3
[mergetool]
prompt = true
[mergetool "nvimmerge"]
cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[rerere]
enabled = true
autoUpdate = true
# ============================================================================
# Diff & Difftool
# ============================================================================
[diff]
algorithm = patience
renames = copies
indentHeuristic = true
tool = nvimdiff
guitool = opendiff
colorMoved = default
[difftool]
prompt = true
[difftool "nvimdiff"]
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[diff "exif"]
textconv = exiftool
# ============================================================================
# Delta (diff viewer)
# ============================================================================
[delta]
features = decorations
line-numbers = true
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
[interactive]
diffFilter = delta --color-only --features=interactive
[add "interactive"]
useBuiltin = true
# ============================================================================
# Aliases
# ============================================================================
[alias]
# Listing
tags = tag -l
branches = branch -l -v -a
remotes = remote -v
# Commits
fixup = commit --fixup
amend = commit --amend --no-edit
head = log --pretty=fuller HEAD^!
# Logs
merges = log --oneline --decorate --color=auto --merges --first-parent
find = "!git log --color -S "
# Utilities
fresh = ! git_fresh
# ============================================================================
# Maintenance & Performance
# ============================================================================
[gc]
auto = 1
[maintenance]
strategy = incremental
auto = false
[maintenance "gc"]
enabled = true
[maintenance "commit-graph"]
enabled = true
[maintenance "prefetch"]
enabled = true
schedule = hourly
[maintenance "loose-objects"]
enabled = true
auto = 50
[maintenance "incremental-repack"]
enabled = true
[maintenance "pack-refs"]
enabled = true
[feature]
experimental = true
manyFiles = true
# ============================================================================
# Security & Verification
# ============================================================================
[receive]
advertiseAtomic = true
autogc = true
fsckObjects = true
[credential]
helper = cache --timeout=28800
useHttpPath = true
# ============================================================================
# External Tools
# ============================================================================
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[url "https://github.com/"]
insteadof = git://github.com/