-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
44 lines (43 loc) · 981 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
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = {{ .git_name }}
email = {{ .git_email | quote }}
{{- if .git_signingkey }}
signingkey = {{ .git_signingkey }}
{{- end }}
[core]
autocrlf = false
pager = LESSCHARSET=utf-8 less
editor = nvim
[commit]
verbose = true
{{- if .git_signingkey }}
gpgsign = true
{{- end }}
[tag]
{{- if .git_signingkey }}
gpgsign = true
{{- end }}
[pull]
rebase = false
ff = only
[push]
#autoSetupRemote = true
[init]
defaultBranch = main
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[alias]
ft = fetch
co = checkout
log-npo = !"git --no-pager log --oneline"
prn = fetch --prune
push-f = push --force-with-lease --force-if-includes