-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
43 lines (34 loc) · 970 Bytes
/
dot_gitconfig.tmpl
File metadata and controls
43 lines (34 loc) · 970 Bytes
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
; Replace YOUR_NAME / YOUR_PERSONAL_EMAIL / YOUR_WORK_EMAIL / YOUR_SIGNING_KEY in chezmoi data.
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[user]
name = {{ or (get . "name") "YOUR_NAME" | quote }}
{{- if (get . "work") }}
email = {{ or (get . "workEmail") "YOUR_WORK_EMAIL" | quote }}
{{- else }}
email = {{ or (get . "email") "YOUR_PERSONAL_EMAIL" | quote }}
{{- end }}
signingkey = {{ or (get . "signingKey") "YOUR_SIGNING_KEY" | quote }}
[gpg]
format = ssh
{{- if eq .chezmoi.os "darwin" }}
[gpg "ssh"]
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign
{{- end }}
[commit]
gpgsign = true
[init]
defaultBranch = main
[pull]
ff = only
[fetch]
prune = true
[core]
editor = {{ or (get . "editor") "code --wait -n" | quote }}
{{- if (get . "work") }}
[include]
path = ~/.config/work/git/config
{{- end }}