-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
42 lines (42 loc) · 925 Bytes
/
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
[user]
email = {{ .email }}
name = {{ .name }}
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBYJRc1rj7YqWxo3dDALqnjPwCY9askwTo1gq1xO/QhB
useConfigOnly = true
[push]
default = current
[pull]
rebase = false
[commit]
gpgsign = true
verbose = true
[merge]
conflictstyle = zdiff3
[diff]
algorithm = histogram
[rebase]
autostash = true
[status]
showStash = true
[checkout]
workers = 0
[core]
excludesFile = "~/.gitignore"
hooksPath = "~/.githooks"
[gpg]
format = ssh
[gpg "ssh"]
{{- if (eq .chezmoi.os "darwin") }}
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign
{{- else }}
program = "/opt/1Password/op-ssh-sign"
{{- end }}
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
[init]
defaultBranch = "main"
{{- $workLite := (eq (env "WORK_MODE") "1") }}
{{- if (or .workmode $workLite) }}
[includeIf "gitdir:~/Code/work/"]
path = ~/.work.gitconfig
{{- end }}