Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 739 Bytes

howToWriteACommitMsg.md

File metadata and controls

36 lines (21 loc) · 739 Bytes

###example

Fix typo in introduction to user guide

Refactor subsystem X for readability

Update getting started documentation

Remove deprecated methods

Release version 1.0.0

###The seven rules of a great git commit message:

1.Separate subject from body with a blank line 用空行隔开段落内容

2.Limit the subject line to 50 characters 把段落字数控制在50个字内

3.Capitalize the subject line 行首字母大写

4.Do not end the subject line with a period 不要以句号结尾

5.Use the imperative mood in the subject line 使用祈使句

6.Wrap the body at 72 characters 全部内容控制在72字内

7.Use the body to explain what and why vs. how 利用文字解释修改了什么,为什么改与如何改