1、创建git模板
创建commit.template文件,其内容为团队制定的Git提交注释规范,如:
MODIFY JIRA-3456 描述
Module : lyra-adapter
Root cause: None
Solution: None
Test: 测试通过
2、通过git config命令配置commit_template
git config –global commit.template 模板文件位置
git config --global commit.template D:\commit
3、重启Android Studio(反复几次)
在提交页面可以看到,如下:

网友评论