-
-
Save JWBlueLiu/6565ba592213b96eb8d177b65fc292df to your computer and use it in GitHub Desktop.
一份建议的git commit模板
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
# --- 提交开始 --- | |
# <类型>(类型值见下方注意事项): <主题> (最多 50 个字) | |
# (e.g. fix: ImageLoader NPE) | |
# 解释为什么要做这些改动 | |
# |<---- 请限制每行最多 72 个字 ---->| | |
# (e.g. 修复图片加载框架未初始化空指针) | |
# 提供相关文章和其它资源的链接和关键字 | |
# (e.g. Github issue #23 or Jira xxxx) | |
# --- 提交结束 --- | |
# --- 注意事项 --- | |
# -------------------- | |
# 类型值 | |
# feat (新特性) | |
# fix (bug修复) | |
# docs (文档改动) | |
# style (格式化, 缺失分号等; 不包括生产代码变动) | |
# refactor (重构代码) | |
# test (添加缺失的测试, 重构测试, 不包括生产代码变动) | |
# chore (更新grunt任务等; 不包括生产代码变动) | |
# | |
# 格式 | |
# 主题和内容以一个空行分隔 | |
# 主题限制为最大 50 个字 | |
# 主题行大写 | |
# 主题行结束不用标点 | |
# 主题行使用祈使名 | |
# 内容每行 72 个字 | |
# 内容用于解释为什么和是什么,而不是怎么做 | |
# 内容多行时以'-'分隔 | |
# -------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// download
curl https://gist.githubusercontent.com/JWBlueLiu/6565ba592213b96eb8d177b65fc292df/raw/fa0189fc358bf85829ce7e66210fd8fb00be01c3/.git-commit-template.txt
// config
git config --global commit.template ~/.git-commit-template.txt