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

阅读 347

2022-03-11

报错:

✖ 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)

0 0 举报