【发布时间】:2019-09-21 21:26:12
【问题描述】:
如果我想创建一个自定义的 git commit 模板,我可以将模板的路径添加为:
[commit]
template = ~/.gitmessage
但它一直附加在我的提交模板默认模板的底部:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: lib/test.rb
#
阅读configuration 他们还附加了默认模板。我知道它已被注释掉,但无论如何要删除它以便它只显示我的自定义模板?
【问题讨论】:
标签: git git-commit git-config