【问题标题】:change template for commit message in vs code在 vs 代码中更改提交消息的模板
【发布时间】:2020-08-05 01:58:47
【问题描述】:

我正在使用 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 visual-studio-code editor commit commit-message


【解决方案1】:

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?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-12-18
    • 1970-01-01
    • 2022-12-04
    • 2012-05-09
    • 2021-02-06
    • 1970-01-01
    • 2012-06-08
    • 2022-11-14
    相关资源
    最近更新 更多