0
点赞
收藏
分享

微信扫一扫

husky - commit-msg hook exited with code 1 (error)

路西法阁下 2022-03-11 阅读 347
vue.js前端

报错:

✖ subject may not be empty [subject-empty]

✖ type may not be empty [type-empty]

✖ found 2 problems, 0 warnings

ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint

husky - commit-msg hook exited with code 1 (error)

 

这种情况下如果你push就会报

Everything up-to-date

解决方法:

git commit -m "fix: xxxx"

commit 的信息需要加 fix 冒号 空格 

然后再pull、push即可

举报

相关推荐

0 条评论