commit报错——husky > commit-msg hook failed (add --no-verify to bypass)

时间:2025-05-16 08:00:49

husky > commit-msg (node v12.18.3)
⧗   input: 解决husky的bug
✖   subject may not be empty [subject-empty]
✖   type may not be empty [type-empty]

✖   found 2 problems, 0 warnings
ⓘ   Get help: /conventional-changelog/commitlint/#what-is-commitlint

husky > commit-msg hook failed (add --no-verify to bypass)

从github上拉取下来的项目,提交的时候总是报错如上。

查了很多资料,资料上说的有两种解决办法,两种都试过了,但是目前只有第一种生效了

原文请参考:/yy_onway/article/details/98627663

对于我来说,是最后一种方式生效了,即:git commit --no-verify -m "备注"