相关疑难解决方法(0)

如何更改默认git提交消息

我在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
#    
Run Code Online (Sandbox Code Playgroud)

问题是否有机会在顶部显示此默认消息?或者更好地永久删除此消息?

git commit

2
推荐指数
1
解决办法
2199
查看次数

标签 统计

commit ×1

git ×1