Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/EmptyTag/153.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 更改vs代码中提交消息的模板_Git_Visual Studio Code_Editor_Commit_Commit Message - Fatal编程技术网

Git 更改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

Im正在使用VS代码编写提交消息。当我键入
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文件

似乎是一个不错的选择。查看

这是否回答了您的问题?这回答了你的问题吗?