-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
69 lines (66 loc) · 1.38 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
[user]
name = Miren Radia
email = miren_radia@yahoo.co.uk
{{- if or .myubuntu .csd3 .myfedora }}
{{- if or .myubuntu .myfedora }}
signingkey = ~/.ssh/id_ed25519.pub
[gpg]
format = ssh
{{- else if .csd3 }}
signingkey = A9EA055CDA1DE0DA
{{- end }}
[commit]
gpgsign = true
{{- end }}
[confidential]
helper = cache
[credential]
helper = cache --timeout=3600
[push]
default = simple
[clangFormat]
binary = clang-format
[pager]
{{- if or .myubuntu .myfedora }}
diff = delta
log = delta
reflog = delta
show = delta
{{- end }}
branch = false
log = true
stash = false
{{- if or .myubuntu .myfedora }}
[delta]
plus-style = "syntax #012800"
minus-style = "syntax #340001"
syntax-theme = Monokai Extended
line-numbers = true
#side-by-side = true
navigate = true
[diff]
colorMoved = default
[interactive]
diffFilter = delta --color-only
{{- end }}
[alias]
slog = !git --no-pager log --pretty=reference -n 10
llog = !git --no-pager log --abbrev-commit -n 1
sdiff = -c delta.side-by-side=true diff
root = rev-parse --show-toplevel
fpush = push --force-with-lease
hash = rev-parse --short HEAD
[pull]
ff = only
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[core]
excludesfile = {{ .chezmoi.homeDir }}/.config/git/ignore
[fetch]
prune = true
[init]
defaultBranch = main
# vim:set syntax=gitconfig ts=4: