瀏覽代碼

git config

pull/1/head
父節點
當前提交
ffff84df17
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. +8
    -0
      templates/git/gitconfig.j2

+ 8
- 0
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 %}