-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
46 lines (45 loc) · 1.1 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
{{ if ( env "REMOTE_CONTAINERS" | empty ) -}}
{{/* we do not manage git in devcontainers */}}
[user]
name = {{ .fullname }}
email = {{ .email }}
signingkey = {{ .recipient }}
[pull]
rebase = true
[init]
defaultBranch = main
[core]
excludesfile = ~/.gitignore_global
[safe]
directory = *
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[gpg]
{{ if (eq .chezmoi.os "darwin") }}
program = /usr/local/MacGPG2/bin/gpg2
{{ end -}}
[commit]
gpgsign = true
[credential]
{{- if or (eq .chezmoi.os "darwin") (not (env "REMOTE_CONTAINERS" | empty)) }}
helper = /usr/local/share/gcm-core/git-credential-manager
{{ end -}}
{{- if (eq .chezmoi.os "linux") }}
credentialStore = secretservice
[credential "https://github.com"]
username = {{ .ghlogin }}
helper = cache
helper = !/usr/bin/gh auth git-credential
helper = github
[credential "https://gist.github.com"]
username = {{ .ghlogin }}
helper = cache
helper = !/usr/bin/gh auth git-credential
helper = github
{{ end -}}
[credential "https://dev.azure.com"]
useHttpPath = true
{{ end -}}