commit 规范

// 设置当前项目和以后创建的项目 git pull 方式为rebase

git config branch.master.rebase true
git config --global pull.rebase true
git config --global branch.autoSetupRebase always

(1)type
提交 commit 的类型,包括以下几种
feat: 新功能
fix: 修复问题
docs: 修改文档
style: 修改代码格式,不影响代码逻辑
refactor: 重构代码,理论上不影响现有功能
perf: 提升性能
test: 增加修改测试用例
chore: 修改工具相关(包括但不限于文档、代码生成等)
deps: 升级依赖
(2)scope
修改文件的范围
(3)subject
用一句话清楚的描述这次提交做了什么
(4)body
补充 subject,适当增加原因、目的等相关因素,也可不写。
(5)footer

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