diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl new file mode 100644 index 0000000..1483395 --- /dev/null +++ b/dot_gitconfig.tmpl @@ -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 }}