Skip to content

Instantly share code, notes, and snippets.

@GeorgeYan
Last active May 9, 2022 08:17
Show Gist options
  • Save GeorgeYan/dfc3f83144dbe6286e13819d8c47a51c to your computer and use it in GitHub Desktop.
Save GeorgeYan/dfc3f83144dbe6286e13819d8c47a51c to your computer and use it in GitHub Desktop.
git-commit-template.txt
# type(<scope>): <subject>
# <body>
# <footer>
# type 字段包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
# scope 用于说明 commit 影响的范围,比如数据层、控制层、视图层等等。
# subject 是 commit 目的的简短描述,不超过50个字符
# Body 部分是对本次 commit 的详细描述,可以分成多行
# Footer 用来关闭 Issue或以BREAKING CHANGE开头,后面是对变动的描述、
# 以及变动理由和迁移方法
# git使用规范,请看这里
# http://wiki.jingyougroup.com/ee/pages/viewpage.action?pageId=983415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment