Add gitconfig template

This commit is contained in:
Yuri Moens
2025-03-12 08:58:46 +01:00
parent 1f0b4c7f12
commit 47f28da70a

47
dot_gitconfig.tmpl Normal file
View File

@ -0,0 +1,47 @@
# This is Git's per-user configuration file.
[user]
name = Yuri Moens
email = {{ .email | quote }}
[url "ssh://git@gitlab.sfpd.fgov.be/"]
insteadOf = https://gitlab.sfpd.fgov.be/
[init]
defaultBranch = master
[diff]
algorithm = histogram
colorMoved = default
mnemonicPrefix = true
renames = true
[branch]
sort = -committerdate
[tag]
sort = version:refname
[column]
ui = auto
[push]
default = simple
autoSetupRemote = true
followTags = true
[fetch]
prune = true
pruneTags = true
all = true
[help]
autocorrect = prompt
[commit]
verbose = true
{{ if eq .profile "personal" -}}
{{- else if eq .profile "sfpd" -}}
[url "ssh://git@gitlab.sfpd.fgov.be/"]
insteadOf = https://gitlab.sfpd.fgov.be/
{{- end }}