Commit message 和 Change log 编写指南

git commit message 规范

原文地址:Commit message 和 Change log 编写指南
Angular commit message 规范
angular git commit message

  • type(必需)、scope(可选)和subject(必需)。

type

  • feat:新功能(feature)
  • fix:修补bug
  • docs:文档(documentation)
  • style: 格式(不影响代码运行的变动)
  • refactor:重构(即不是新增功能,也不是修改bug的代码变动)
  • test:增加测试
  • chore:构建过程或辅助工具的变动

scope

  • scope用于说明 commit 影响的范围,比如数据层、控制层、视图层等等,视项目不同而不同。

subject

  • subject是 commit 目的的简短描述,不超过50个字符。

猜你喜欢

转载自blog.csdn.net/qq_24489717/article/details/79822564