subject may not be empty [subject-empty]

type may not be empty [type-empty]

✖ 主题不能为空[主题为空]
✖ 类型不能为空[类型为空]
git commit 又一定规范,需要按照规范来提交
在git commit -m “” 时,要使用 type: xxxxx

git commit -m "fix: xxx"

git commit规范

type:用于说明 commit 的类型,被指定在 commitlint.config.js 的 type-enum
feat:新功能(feature)
fix:修补bug
docs:文档
style: 格式(不影响代码运行的变动)
refactor:重构(即不是新增功能,也不是修改bug的代码变动)
test:增加测试
chore:构建过程或辅助工具的变动
revert: 回滚到上一个版本
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐