git提交报错 husky - commit-msg hook exited with code 1 (error)
Git提交的时候提示失败,主要报错如下:
⧗ input: tj
✖ 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)
解决方式:
使用命令提交,注意fix后的:为英文符号,并且必须和提交内容有个空格
git commit -m "fix: 提交内容"