git commit报一下错:
✖ subject may not be empty [subject-empty]
✖ type may not be empty [type-empty]
检查一下packages.json文件中的:commit-msg
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged",
"post-merge": "git submodule update",
"post-checkout": "git submodule update",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
说明提交的描述不对,应该改为fix: xxxx,注意fix 后面要有空格!!!
git commit -m "fix: xxxx"