ansible-role-common/templates/_gitconfig.j2

19 lines
318 B
Django/Jinja

{% if gitconfig_name is defined and gitconfig_email is defined %}
[user]
name = {{ gitconfig_name }}
email = {{ gitconfig_email }}
{% endif %}
[core]
excludesfile = ~/.gitignore_global
editor = vi
[push]
default = matching
[color]
ui = auto
[help]
autocorrect = 1
[pull]
ff = only
[init]
defaultBranch = main