git 代码提交注释模板
idea使用插件 git-commit-template
- https://plugins.jetbrains.com/plugin/9861-git-commit-template
git bash下使用模板
新建模板文件
- common-commit_template
type of change:
scope of this change:
short description:
long description:
breaking changes:
closed issues:
-
设置模板
git config --global commit.template common-commit_template
-
设置文本编辑器
git config --global croe.editor vim
-
提交代码
git add 文件名
git commit -a
-
编辑提交信息
- git push 即可
- 效果