Skip to content
返回

dh-cm-git-commit

通用正在获取安装数据

Conventional Commits 格式的 Git commit message 规范

概述
dh-cm-git-commit

Git 提交规范 ​

遵循 Conventional Commits 规范。

格式 ​

<type>(<scope>): <subject>

[optional body]

[optional footer]

提交类型(type) ​

类型说明
feat新功能
fixBug 修复
docs文档变更
style代码格式(不影响逻辑)
refactor代码重构(非 feat/fix)
perf性能优化
test测试相关
chore构建 / 工具 / 依赖变更
revert回滚提交

书写规则 ​

  • subject:现在时态,首字母小写,句末不加标点
  • 单次提交只做一件事
  • body 说明 what 和 why,而非 how
  • Breaking change 在 footer 注明 BREAKING CHANGE: <描述>

示例 ​

feat(auth): add JWT refresh token support

fix(upload): resolve avatar upload failure on mobile Safari

chore(deps): upgrade react to 18.3.0

Power By 数字海南