【发布时间】:2012-04-07 12:22:10
【问题描述】:
默认的 git 提交消息是:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: file1
# modified: file2
#
这对我来说很好。但默认情况下,我宁愿取消注释某些行:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
modified: file1
modified: file2
#
所以我不必每次都取消注释。 有可能吗?
谢谢
【问题讨论】:
-
为什么要在提交信息中列出修改过的文件?这完全是多余的。
-
这不是重复的问题。发帖人特别希望在提交消息中包含修改文件的列表,而另一个问题根本没有提及。
标签: git