git commit template 配置
Template 配置
模版
新建模版文件 .git_commit_template
OverView:
BUG:
Descripion:
配置:
- 当前分支
git config commit.template .git_commit_template
- 全局模版
git config --global commit.template git_commit_template
编辑器:
- 设置 message 编辑器
git config --global core.editor vi
overview type:
- feat:新功能(feature)
- fix:修补bug
- docs:文档(documentation)
- style: 格式(不影响代码运行的变动)
- refactor:重构(即不是新增功能,也不是修改bug的代码变动)
- test:增加测试
- chore:构建过程或辅助工具的变动
示例: