当前位置:   article > 正文

git提交规则及报错_subject may not be empty [subject-empty]

subject may not be empty [subject-empty]

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"
  • 1

git commit规范

type:用于说明 commit 的类型,被指定在 commitlint.config.js 的 type-enum
feat:新功能(feature)
fix:修补bug
docs:文档
style: 格式(不影响代码运行的变动)
refactor:重构(即不是新增功能,也不是修改bug的代码变动)
test:增加测试
chore:构建过程或辅助工具的变动
revert: 回滚到上一个版本
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/酷酷是懒虫/article/detail/846056
推荐阅读
  

闽ICP备14008679号