-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
78 lines (78 loc) · 1.62 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
73
74
75
76
77
78
[alias]
attribution = blame -w -C -C -C
cleanup = "!git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D"
[blame]
date = iso
[branch]
sort = -committerdate
[commit]
cleanup = scissors
gpgSign = true
verbose = true
[core]
attributesfile = ~/.gitattributes
autocrlf = input
editor = code --wait
excludesfile = ~/.gitignore
{{ if eq .chezmoi.os "windows" -}}
fsmonitor = true
{{ end -}}
pager = delta
untrackedcache = true
[diff]
algorithm = histogram
submodule = log
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[fetch]
prune = true
[format]
[gpg]
{{ if eq .chezmoi.os "windows" -}}
program = c:/Program Files (x86)/GnuPG/bin/gpg.exe
{{ else -}}
program = gpg
{{ end -}}
[init]
defaultBranch = main
[interactive]
diffFilter = delta
[log]
date = format:%F %T
showSignature = true
[merge]
{{ if eq .chezmoi.os "windows" -}}
conflictStyle = zdiff3
{{ else -}}
conflictStyle = diff3
{{ end -}}
ff = only
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
[pager]
[pretty]
[pull]
rebase = true
[push]
autoSetupRemote = true
default = simple
[rebase]
autosquash = true
autostash = true
[rerere]
enabled = true
[status]
submoduleSummary = true
[submodule]
recurse = true
[tag]
gpgSign = true
[url "[email protected]:"]
insteadOf = "https://github.com/"
[url "[email protected]:"]
insteadOf = "gh:"
[user]
email = {{ .email | quote}}
name = {{ .name | quote }}