-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_gitconfig.tmpl
46 lines (46 loc) · 1.13 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
[user]
name = Andrew Barchuk
{{- if .work.laptop }}
email = [email protected]
signingkey = 7B7AA60DC00AF73A3820C609F89D58E0FA4F7AD4
{{- else }}
email = [email protected]
signingkey = B14FD6B79497FC060E88564D548706C0A2EEA361
{{- end }}
[commit]
gpgSign = {{ or .gpg.enabled .work.laptop }}
[gpg]
# for Xcode to be able to find GPG
program = {{ lookPath "gpg" }}
[core]
excludesfile = ~/.gitignore
[include]
path = ~/.gitconfig.local
[init]
defaultBranch = main
[pull]
ff = only
[push]
autoSetupRemote = true
[mergetool "nvim"]
cmd = nvim -c "Gvdiffsplit!" "$MERGED"
prompt = false
keepBackup = false
[merge]
tool = nvim
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
continue = "!f() { git commit --edit --file=$(git rev-parse --git-dir)/COMMIT_EDITMSG; }; f"
[credential "https://github.com"]
helper =
helper = !gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://github.bus.zalan.do"]
helper =
helper = !gh auth git-credential