自定义Git提交消息模板 [英] Custom Git Commit Message Template
本文介绍了自定义Git提交消息模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何制作自定义的提交消息模板?
How do I craft customized commit message template?
我想要类似的东西:
# Short (50 chars or fewer) summary of changes
# More detailed explanatory text
推荐答案
将以下内容添加到您的~/.gitconfig
:
Add following to your ~/.gitconfig
:
[commit]
template = ~/.git-commit-message
创建具有以下内容的~/.git-commit-message
文件:
Create ~/.git-commit-message
file with following content:
# Short (50 chars or fewer) summary of changes
# More detailed explanatory text
参考 http://git-scm.com/docs/git-config
这篇关于自定义Git提交消息模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文