gitlab 中提交記錄中信息很匱乏,需要完善。
一個建議:
配置commit template,每次commit 都記錄本次修改的主要內(nèi)容。
一個舉例:
$ vim .commit_template
Feature:/
BugId:/
Description:
git config commit.template .commit_template
或者
git config --global commit.template .commit_template
template 可以自行定義,也可以團隊約定(建議)。
擴展閱讀:
老鳥都應(yīng)該注意的git 提交規(guī)范
http://www.cnblogs.com/ctaodream/p/6066694.html
簡介:
這里也提到了
這里給出兩種方案,也是業(yè)界比較通用的
1. commitizen 交互式約束命令 提交
2.配置git commit 模板
Git 提交的正確姿勢:Commit message 編寫指南
https://www.oschina.net/news/69705/git-commit-message-and-changelog-guide?from=20160110
簡介:
轉(zhuǎn)載自 阮一峰 的博客。也提到了commit template 和 commitizen