小编AWE*_*UMI的帖子

Commitlint 不起作用。git commit -m commitlint 消息显示未知参数,husky 存在,代码为 1(错误)

git commit -m "feat: 测试 commitlint 库" @commitlint/cli@16.2.3 - 检查你的提交消息

[input] 如果省略 --edit、--env、--from 和 --to 则从 stdin 读取

Options:
  -c, --color          toggle colored output           [boolean] [default: true]
  -g, --config         path to the config file                          [string]
      --print-config   print resolved config          [boolean] [default: false]
  -d, --cwd            directory to execute in
                                         [string] [default: (Working Directory)]
  -e, --edit           read last commit message from the specified file or      
                       fallbacks to ./.git/COMMIT_EDITMSG               [string]
  -E, --env            check message in the file at path given by environment   
                       variable …
Run Code Online (Sandbox Code Playgroud)

husky git-husky commitlint

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

commitlint ×1

git-husky ×1

husky ×1