【发布时间】:2016-04-23 18:06:11
【问题描述】:
我在 prepare-commit-msg 文件中添加了一些对提交消息的更改,然后我执行了这个命令
git config --global commit.template .git/hooks/prepare-commit-msg
之后,当我执行 git commit 时,我会收到类似这样的信息
40 行我的更改然后
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# Explicit paths specified without -i nor -o; assuming --only paths...
# On branch master
# Changes to be committed:
#
# modified: test
#
问题是否有机会在顶部显示此默认消息?或者更好地永久删除此消息?
【问题讨论】: