-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_gitconfig.tmpl
72 lines (72 loc) · 1.52 KB
/
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
[user]
name = Bill ONeill
email = {{ default .email .gitemail }}
[core]
autocrlf = input
safecrlf = true
editor = vim
excludesfile = ~/.gitignore_global
{{- if eq .chezmoi.os "darwin" }}
pager = delta
{{- end }}
[init]
defaultBranch = main
templateDir = ~/.git-template
{{- if eq .chezmoi.os "darwin" }}
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
{{- end }}
[merge]
conflictstyle = diff3
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[push]
default = current
[diff]
colorMoved = default
[blame]
ignoreRevsFile = .git-blame-ignore-revs
[rerere]
enabled = true
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 227
frag = magenta bold
commit = 227 bold
old = red bold
new = green bold
whitespace = red reverse
[rebase]
autostash = true
[stash]
showPatch = true
[diff "sopsdiffer"]
textconv = sops -d
[pull]
ff = only
[fetch]
prune = true
{{- if .github_enterprise_host }}
[credential "https://{{ .github_enterprise_host }}"]
provider = github
{{- end }}
[credential]
helper = {{ if eq .chezmoi.os "darwin" }}/usr/local/share/gcm-core/git-credential-manager{{ else }}store{{ end }}
[credential "https://dev.azure.com"]
useHttpPath = true
{{ if eq .category "work" -}}
[credential "https://github.com"]
username = woneill_mntv
[credential "https://github.com/woneill"]
username = woneill
{{- end }}