subject may not be empty | type may not be empty报错解决

目录

1、今天在提交前端代码时突然发现这个包错,尝试了下面方法,已解决。

2、解决方式一:修改提交信息, 使其符合规范

3、解决方式二:直接卸载工具


1、今天在提交前端代码时突然发现这个包错,尝试了下面方法,已解决。

✖ subject may not be empty [subject-empty]

✖ type may not be empty [type-empty]

✖ found 2 problems, 0 warnings

ⓘ Get help: GitHub - conventional-changelog/commitlint: 📓 Lint commit messages

原因是使用了规范commit信息的工具,你的提交信息不符合规范,所以被拒绝了

commit规范工具

  • commitlint
  • husky

2、解决方式一:修改提交信息, 使其符合规范

git commit -m "feat: 新功能"

3、解决方式二:直接卸载工具

npm uninstall husky

相关推荐

  1. easyexcel解决

    2024-05-01 19:50:05       36 阅读
  2. Mybatis解决

    2024-05-01 19:50:05       10 阅读
  3. okhttpclient.setsslsocketfactory 解决

    2024-05-01 19:50:05       41 阅读
  4. yum命令解决

    2024-05-01 19:50:05       40 阅读
  5. 解决Rust Cargo

    2024-05-01 19:50:05       8 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-05-01 19:50:05       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-05-01 19:50:05       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-05-01 19:50:05       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-05-01 19:50:05       20 阅读

热门阅读

  1. Ubuntu下vscode彻底卸载

    2024-05-01 19:50:05       11 阅读
  2. 自动化测试——selenium

    2024-05-01 19:50:05       8 阅读
  3. Docker Error log

    2024-05-01 19:50:05       9 阅读
  4. 每天学习一个Linux命令之dd

    2024-05-01 19:50:05       11 阅读
  5. 使用 Python 和 Keras 实现卷积神经网络

    2024-05-01 19:50:05       13 阅读
  6. 三维装箱问题要点和难点实际应用和案例参考

    2024-05-01 19:50:05       14 阅读
  7. C/C++逻辑与运算与汇编指令的关系

    2024-05-01 19:50:05       10 阅读
  8. Tomcat的请求连接配置

    2024-05-01 19:50:05       10 阅读