当你尝试在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"
最近几次git commit 的时候总是遇到错误,抛出的问题都是: subject may not be empty [subject-empty] type may not be empty [type-empty] 找了很久发现是描述的名称后面忘记加空格导致的。。。记录一下踩过的坑。。... 查看原文 Aborting commit due to empty commit message git 提交 Aborting commit ...
✖ 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) ...
配置 shellnpx husky add .husky/commit-msg "npx --no -- commitlint --edit ${1}" 测试 shell## 错误示例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 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 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 hook exitedwithcode1(error)## 正确示例PSC:\Users\WangYang\Documents\Project\ele...