markdown Git提交消息规范

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Git提交消息规范相关的知识,希望对你有一定的参考价值。

**Git Commit Messages**

- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally
- When only changing documentation, include [ci skip] in the commit description
- Consider starting the commit message with an applicable emoji:

```
 :art: when improving the format/structure of the code
 :racehorse: when improving performance
 :non-potable_water: when plugging memory leaks
 :memo: when writing docs
 :penguin: when fixing something on Linux
 :apple: when fixing something on macOS
 :checkered_flag: when fixing something on Windows
 :bug: when fixing a bug
 :fire: when removing code or files
 :green_heart: when fixing the CI build
✅ :white_check_mark: when adding tests
 :lock: when dealing with security
⬆️ :arrow_up: when upgrading dependencies
⬇️ :arrow_down: when downgrading dependencies
 :shirt: when removing l     inter warnings
✨ :sparkles: new feature
 :lipstick: Improve design, cosmetic
```

以上是关于markdown Git提交消息规范的主要内容,如果未能解决你的问题,请参考以下文章

markdown AngularJS Git提交消息约定

Git(三)代码提交规范

markdown 如何在Git中更改提交消息? - 首次发表于fullweb.io第55期

markdown 如何在Git中更改提交消息? - 首次发表于fullweb.io第55期

Git提交规范

关于 Git 提交这些规范,你都遵守了吗?