Last active
September 1, 2016 01:56
-
-
Save tonydeng/42246642224a246df12a559d9c2284b5 to your computer and use it in GitHub Desktop.
git commit tempate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type(<scope>): <subject> | |
<body> | |
<footer> | |
# type 字段包含: | |
# backlog: 开始一个新的backlog | |
# feat: 新功能(feature) | |
# fix: 修补bug | |
# docs: 文档(documentation) | |
# style: 格式(不影响代码运行的变动) | |
# refactor: 重构(即不是新增功能,也不是修改bug的代码变动) | |
# test: 增加测试 | |
# chore: 构建过程或辅助工具的变动 | |
# scope 用于说明 commit 影响的范围,比如数据层、控制层、视图层等等。 | |
# subject 是 commit 目的的简短描述,不超过50个字符 | |
# body 部分是对本次 commit 的详细描述,可以分成多行 | |
# footer 用来关闭 Issue或以Backlog开头,后面是对变动的描述、以及变动理由和迁移方法 | |
# 英文版详细例子,请看这里 | |
# https://github.com/sparkbox/how_to/tree/master/style/git | |
# 中文版介绍,请看这里 | |
# http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment