Git 提交规范

参考
阮一峰:http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html
稀土掘金 Jartto:https://juejin.cn/post/6844903635118194701

commit 规范

用于说明 commit 的类别,只允许使用下面7个标识。

1
2
3
4
5
6
7
feat:新功能(feature)
fix:修补bug
docs:文档(documentation)
style: 格式(不影响代码运行的变动)
refactor:重构(即不是新增功能,也不是修改bug的代码变动)
test:增加测试
chore:构建过程或辅助工具的变动

使用效果

1662718209829-962317d7-ed28-4064-842b-9a389a94a7a4.png