-
Notifications
You must be signed in to change notification settings - Fork 1
/
private_dot_gitconfig.tmpl
177 lines (139 loc) · 3.22 KB
/
private_dot_gitconfig.tmpl
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
[advice]
detachedHead = false
[core]
attributesFile = ~/.gitattributes
commentChar = auto
editor = hx
excludesFile = ~/.gitignore-global
# hooksPath = ~/.local/hooks
ignoreCase = false
pager = delta
preComposeUnicode = true
{{- $helper := "cache" }}
{{- if .environment.work }}
{{- $helper = "manager" }}
{{- else }}
{{- if eq .chezmoi.os "darwin" }}
{{- $helper = "osxkeychain" }}
{{- else if eq .chezmoi.os "windows" }}
{{- $helper = "wincred" }}
{{- else if eq .chezmoi.os "linux" }}
{{- $helper = "libsecret" }}
{{- end }}
{{- end }}
[credential]
helper = {{ $helper }}
[delta]
dark = true
light = false
line-numbers = true
navigate = true
side-by-side = true
syntax-theme = Visual Studio Dark+
[diff]
algorithm = histogram
colorMoved = default
[diff "plist"]
textConv = plist2xml
[difftool]
guiDefault = auto
prompt = false
trustExitCode = true
[fetch]
fsckObjects = true
prune = true
[filter "lfs"]
clean = git-lfs clean -- %f
process = git-lfs filter-process
required = true
smudge = git-lfs smudge -- %f
[format]
signOff = true
[gui]
pruneDuringFetch = true
[help]
## correct typos
autoCorrect = 1
## Include files to keep this one lean
[include]
path = ~/.gitaliases
path = ~/.gitcolors
[interactive]
diffFilter = delta --color-only
[log]
date = relative
[mailInfo]
scissors = true
[mailmap]
file = ~/.mailmap
[merge]
autoStash = true
conflictStyle = zdiff3
ff = only
[mergetool]
prompt = false
[pager]
diff = delta
[protocol]
## faster git server communication.
## like a LOT faster. https://opensource.googleblog.com/2018/05/introducing-git-protocol-version-2.html
version = 2
[pull]
rebase = true
ff = true
## push easily. http://stackoverflow.com/a/23918418/89484
[push]
autoSetupRemote = true
default = current
followTags = true
recurseSubmodules = check
[rebase]
autoSquash = true
autoStash = true
[receive]
fsckObjects = true
# [remote "origin"]
# fetch = +refs/heads/*:refs/remotes/origin/*
[safe]
directory = *
[sendEmail]
annotate = yes
chainReplyTo = false
[smartGit "submodule"]
fetchAlways = false
initializeNew = true
update = true
[stash]
showPatch = true
## https://git-scm.com/docs/git-interpret-trailers
[trailer "sign"]
command = echo \"$(git config user.name) <$(git config user.email)>\"
ifExists = addIfDifferent
ifMissing = add
key = Signed-off-by
[trailer "coauthor"]
key = Co-authored-by
ifExists = addIfDifferent
[transfer]
fsckObjects = true
[url "git://gist.github.com/"]
insteadOf = "gist:"
[url "[email protected]:"]
insteadOf = git://github
[url "[email protected]:"]
insteadOf = https://gist.github.com/
[user]
email = {{ .personal.gitEmail }}
name = {{ .personal.name.preferred }}
## Personal overrides
[includeIf "gitdir:{{ .chezmoi.homeDir }}/.files/"]
path = .gitconfig-personal
[includeIf "gitdir:{{ .chezmoi.homeDir }}/.local/share/chezmoi/"]
path = .gitconfig-personal
[includeIf "gitdir:{{ .chezmoi.homeDir }}/.secrets/"]
path = .gitconfig-personal
[includeIf "gitdir:{{ .chezmoi.homeDir }}/dev/**/"]
path = .gitconfig-personal
## Work overrides
[includeIf "gitdir:{{ .chezmoi.homeDir }}/workspace/**/"]
path = .gitconfig-work