From ffff84df1729fef09b2a1511378582ff14a219b0 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 15 Feb 2021 22:24:28 +0100 Subject: [PATCH] git config --- templates/git/gitconfig.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/git/gitconfig.j2 b/templates/git/gitconfig.j2 index 4c9391f..71286c6 100644 --- a/templates/git/gitconfig.j2 +++ b/templates/git/gitconfig.j2 @@ -1,5 +1,13 @@ [user] +{% if git_user_email is defined %} email = {{git_user_email}} +{% endif %} +{% if git_user_name is defined %} name = {{git_user_name}} +{% endif %} [init] defaultBranch = main +{% if github_username is defined %} +[github] + user = {{github_username}} +{% endif %}