-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_gitconfig.tmpl
44 lines (39 loc) · 970 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
43
44
[pull]
rebase = true
[init]
defaultBranch = main
{{ if not .codespaces }}
[user]
name = Dan Mills
email = "{{ .email }}"
{{ if eq .chezmoi.os "linux" }}
[credential "https://github.com"]
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper = !/usr/bin/gh auth git-credential
{{ else if eq .chezmoi.os "darwin" }}
[credential "https://github.com"]
helper = !/usr/local/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper = !/usr/local/bin/gh auth git-credential
{{ end }}
{{ end }}
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
{{ if eq .chezmoi.os "windows" }}
[core]
autocrlf = input
{{ end }}
[core]
editor = code --wait
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED