Git_学习_09_Commit message 和 Change log 编写指南

一、前言

二、Commit message编写

1.规范

2.用空行分开主题和正文

  • 提交时只执行 git commit,这时就会跳出文本编辑器,让你写多行。
git commit
  • 主题和正文分开
    每次提交,Commit message 都包括三个部分:Header,Body 和 Footer。

<type>(<scope>): <subject>
// 空一行
<body>
// 空一行
<footer>

三、参考资料

1.Commit message 和 Change log 编写指南
2.【译】怎么写Git Commit Message

猜你喜欢

转载自www.cnblogs.com/shirui/p/9703307.html