当你尝试在Git中进行提交(commit)操作时,如果提交信息(commit message)的主体部分(subject)为空,Git会抛出“git commit subject may not be empty”的错误。这意味着你没有为这次提交提供任何有意义的描述,Git无法创建一个有效的提交记录。 解决“git commit subject may not be empty”错误的方法 要解决这个错误...
配置lint 检查后,使用commitlint之后报错 报错信息 ⧗ input: feat:初始化项目 ✖ 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 - ...
配置lint 检查后,使用commitlint之后报错 报错信息 ⧗ input: feat:初始化项目 ✖ 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-commitl...
解决办法 提交信息加 “fix: xxxxx”fix后面一定要加空格! git commit -m "fix: xxxx"
✖ subject may not beempty[subject-empty]✖ type may not beempty[type-empty]✖ found2problems,0warnings ⓘ Get help:https://github.com/conventional-changelog/commitlint/#what-is-commitlinthusky>commit-msg hook failed(add--no-verify to bypass) ...
✖ subject may not be empty[subject-empty]✖ type may not be empty[type-empty]✖ found2problems,0warnings ⓘ Get help:https://github.com/conventional-changelog/commitlint/#what-is-commitlint husky>commit-msg hookfailed(add--no-verify to bypass) ...
✖ 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) ...
✖ 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 failed (add --no-verify to bypass) ...
配置 npx husky add .husky/commit-msg "npx --no -- commitlint --edit ${1}" 测试 ## 错误示例PS C:\Users\WangYang\Documents\Project\electron-vite-vue> git commit -m "commitlint"→ No staged files match any configured task.? input: commitlint? subject may not be empty [subject-empty]...
husky > commit-msg (node v14.17.1) ⧗ input: feat:新增邀约超时文案 ✖ subject may not be empty [subject... git commit 的时候报错,原来是提交的message是有规范的,所以要按照要求提交。 Commit Message 第一目标是尽量让人能比较容易的的了解该 commit 的具体内容。