报错:
✖ 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即可