dotfiles/roles/git/templates/gitconfig.j2

35 lines
666 B
Django/Jinja

# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = {{ git_user }}
email = {{ git_email }}
{% if git_do_sign %}
signkey = {{ git_signkey }}
signingkey = {{ git_signingkey }}
{% endif %}
{% if git_do_sign %}
[gpg]
program = {{ git_gpg_program }}
{% endif %}
[commit]
{% if git_do_sign %}
gpgsign = true
{% endif %}
[alias]
{% for alias in git_aliases %}
{{ alias.name }} = {{ alias.cmd }}
{% endfor %}
{% for cred in git_credentials %}
[credential "{{ cred.remote_url }}"]
username = {{ cred.username }}
{% if cred.helper is defined %}
helper = {{ cred.helper }}
{% endif %}
{% endfor %}