Git 更改vs代码中提交消息的模板
Im正在使用VS代码编写提交消息。当我键入Git 更改vs代码中提交消息的模板,git,visual-studio-code,editor,commit,commit-message,Git,Visual Studio Code,Editor,Commit,Commit Message,Im正在使用VS代码编写提交消息。当我键入git commit时-aVS-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: Def
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\u file
似乎是一种方法。查看git config commit.template/absolute/path/to/template\u文件似乎是一个不错的选择。查看这是否回答了您的问题?这回答了你的问题吗?