Commitizen 使用后怎么提交

配置就不说了。
用法:
例子:
git commit -m "feat(views): add Index page"

  1. feat: 可以是你package.json里面的配置任一项,根据具体选择
...
"validate-commit-msg": {
      "types": [
        "feat",
        "fix",
        "docs",
        "style",
        "refactor",
        "perf",
        "test",
        "build",
        "ci",
        "chore",
        "revert"
      ],
     ...
  1. (views): 括号是必须的,里面的内容根据提交的内容来定,比如修改的是视图(view)
  2. : add xxx: 分号然后空格+动词+内容。
原文地址:https://www.cnblogs.com/huangjunjia/p/13068165.html