Feature:新功能
示例:
$ git add .
$ git commit -m "Feature:
> 1. 功能一是;
> 2. 功能二是."
Bugfix:修补bug
示例:
$ git add .
$ git commit -m "Bugfix:
> 1. 修复Bug(bugid1): 描述;
> 2. 修复Bug(bugid2): 描述."
Docs:文档(documentation)
示例:
$ git add .
$ git commit -m "Docs:
> 1. 创建文档:描述;
> 2. 更新文档:描述."
Style: 格式(不影响代码运行的变动)
示例:
$ git add .
$ git commit -m "Style:
> 1. 调整格式一;
> 2. 调整格式二."
Refactor:重构(即不是新增功能,也不是修改bug的代码变动)
示例:
$ git add .
$ git commit -m "Refactor:
> 1. 重构代码一;
> 2. 重构代码二."
Test:增加测试
示例:
$ git add .
$ git commit -m "Test:
> 1. 测试代码一;
> 2. 单元测试二."
Chore:构建过程或辅助工具的变动
示例:
$ git add .
$ git commit -m "Chore:
> 1. 构建工具一;
> 2. 辅助工具二."