-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
60 lines (58 loc) · 1.22 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
[user]
name = Basix
email = [email protected]
signingkey = F7E4D4D96797603C
[column]
ui = auto
[core]
excludesfile = ~/.gitexclude
[help]
autocorrect = prompt
{{- if lookPath "delta" }}
pager = delta
{{- end }}
fsmonitor = true
[pull]
rebase = true
[credential]
helper =
{{- if eq .chezmoi.os "windows" }}
helper = manager-core
{{- else if eq .chezmoi.os "darwin" }}
helper = /usr/local/bin/git-credential-manager
{{- end }}
[init]
defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[gpg]
program = gpg
[commit]
gpgsign = true
[rebase]
autoStash = true
autoSquash = true
[merge]
conflictstyle = diff3
conflictstyle = zdiff3
[diff]
algorithm = histogram
colorMoved = default
[interactive]
diffFilter = delta --color-only
[rerere]
enabled = true
[push]
default = current
[alias]
toplevel = rev-parse --show-toplevel
gone = ! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D
# Delta
[delta]
navigate = true # use n and N to move between diff sections
theme = Monokai Extended
[includeIf "gitdir:~/work/"]
path = ~/.gitconfig-work