Browse Source

git config

pull/1/head
parent
commit
ffff84df17
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      templates/git/gitconfig.j2

+ 8
- 0
templates/git/gitconfig.j2 View File

@@ -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 %}