-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
96 lines (81 loc) · 2.19 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{{- if (ne .gpg.signingkey "") -}}
[commit]
gpgsign = true
{{- end }}
[core]
abbrev = 12
attributesfile = "~/.gitattributes"
autocrlf = false
editor = "vim"
eol = "lf"
excludesfile = "~/.gitignore"
excludesfile = "~/.gitignore"
fileMode = false
pager = "delta"
[include]
path = ~/.gitconfig.colors
[delta]
navigate = true # use n and N to move between diff sections
side-by-side = true
line-numbers = true
features = "decorations"
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
[diff "bin"]
# Use `hexdump` to diff binary files.
textconv = hexdump -v -C
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-proces
[interactive]
diffFilter = delta --color-only --features = interactive
[pager]
diff = delta
log = delta
reflog = delta
show = delta
[pretty]
custom = "%C(magenta)%h%C(red)%d %C(yellow)%ar %C(green)%s %C(yellow)(%an)"
# │ │ │ │ └─ author name
# │ │ │ └─ message
# │ │ └─ date (relative)
# │ └─ decorations (branch, heads or tags)
# └─ hash (abbreviated)
[user]
email = "{{- .git.email -}}"
name = "{{- .git.name -}}"
{{- if (ne .gpg.signingkey "") }}
signingkey = "{{- .gpg.signingkey -}}"
{{- end }}
useConfigOnly = true
# Split Protocol Config
## GitHub
[url "https://github.com/"]
insteadOf = "git@github.com:"
[url "git@github.com:"]
pushInsteadOf = "https://github.com/"
pushInsteadOf = "git@github.com:"
[branch "master"]
remote = origin
merge = refs/heads/master
rebase = true
[branch "main"]
remote = origin
merge = refs/heads/main
rebase = true
[init]
defaultBranch = main
[push]
default = current
[pull]
default = current