Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 905 Bytes

GitConvention.md

File metadata and controls

27 lines (14 loc) · 905 Bytes

Git规范

Commit规范

每次commit时,添加的描述信息需要有一个特定的前缀,限定在以下范围(feat|doc|test|docs|chore|refactor|fix|style| perf): xxx 注意冒号后面有一个空格

feat - 新功能(feature)

doc- 文档(documentation)

style- 格式(不影响代码运行的变动)

refactor- 重构(即不是新增功能,也不是修改bug的代码变动)

fix- 修补bug

test- 增加测试

chore- 构建过程或辅助工具的变动

Eg. 1.feat: 检测C++代码 2.fix: 检测if-else失败

关于GitFlow的更多信息,可以参考以下链接或自行谷歌百度

https://github.com/xirong/my-git/blob/master/git-workflow-tutorial.md#23-gitflow%E5%B7%A5%E4%BD%9C%E6%B5%81

http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html