在 vs 代码中更改提交消息的模板

change template for commit message in vs code

我正在使用 VS Code 编写提交消息。当我键入 git commit -a 时,VS Code 以以下文本启动:

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch assi
# Changes to be committed:
#   modified:   Default_Navigation.cs
#

是否可以更改此模板?

git config commit.template /absolute/path/to/template_file 似乎是要走的路。查看 How to specify a git commit message template for a repository in a file at a relative path to the repository?