Add gitconfig template
This commit is contained in:
47
dot_gitconfig.tmpl
Normal file
47
dot_gitconfig.tmpl
Normal 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 }}
|
Reference in New Issue
Block a user