vscode的git提交提示commit-msg hook failed (add --no-verify to bypass)

时间:2025-05-16 08:01:14
husky > commit-msg (node v12.12.0)
Using environment variable syntax ($GIT_PARAMS) in -e |--edit is deprecated. Use '{-E|--env} HUSKY_GIT_PARAMS instead'
⧗   input: 推荐前台修改
✖   subject may not be empty [subject-empty]
✖   type may not be empty [type-empty]

✖   found 2 problems, 0 warnings
ⓘ   Get help: /conventional-changelog/commitlint/#what-is-commitlint

husky > commit-msg hook failed (add --no-verify to bypass)

可以命令行提交是增加: --no-verify

 

git commit -m "Not sure what to write commit message" --no-verify

或者删除.git目录下的hooks下的文件