格式:
type(scope) : subject
( 1 ) type(必须) : commit 的类别,只允许使用下面几个标识:
- feat : 新功能
- fix : 修复bug
- docs : 文档改变
- style : 代码格式改变
- refactor : 某个已有功能重构
- perf : 性能优化
- test : 增加测试
- build : 改变了build工具 如 grunt换成了 npm
- revert : 撤销上一次的 commit
- chore : 构建过程或辅助工具的变动
( 2 ) scope(可选) : 用于说明 commit 影响的范围,比如数据层、控制层、视图层等等,视项目不同而不同。
参考AngularJS 在 github上 的提交记录:https://github.com/angular/angular
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/202084.html原文链接:https://javaforall.net
