Git 提交规范建议 #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Git 提交规范建议
一、核心原则
提交信息需清晰体现「修改类型」「影响范围」和「具体内容」,便于团队协作、代码回溯
二、常用标签(类型+格式)
featfeat(用户模块): 新增手机号登录功能fixfix(订单页): 修复结算金额计算错误docsdocs(api): 更新支付接口参数说明stylestyle(utils): 统一函数括号格式refactorrefactor(列表页): 拆分复杂渲染函数testtest(login): 补充登录失败场景测试chorechore: 升级 eslint 至 9.0.0三、提交信息结构
示例
四、注意事项
chore: 调整打包输出路径);-分点说明,清晰区分不同变更。影响范围之外分 commit 提交,不同影响范围的修改需拆分独立 Commit,避免一个 Commit 包含跨模块 / 跨功能的变更。