语义化提交日志 Semantic Commit Messages

使用固定提交日志格式,会有助于我们成为一个更好的开发者。

feat: add hat wobble
^--^  ^------------^
|     |
|     +-> 概述应该用一般现在时态来写.
|
+-------> 类型: chore, docs, feat, fix, refactor, style, or test.

Example

chore: add Oyster build script

docs: explain hat wobble

feat: add beta sequence

fix: remove broken confirmation message

refactor: share logic between 4d3d3d3 and flarhgunnstow

style: convert tabs to spaces

test: ensure Tayne retains clothing

一次提交应只包含一种类型,不要把feature和fix在同一次提交中。这样git log查看变动日志的时候会更易读。

相关文章:

  • 2021-06-19
  • 2022-12-23
  • 2022-02-03
  • 2022-02-09
  • 2022-12-23
  • 2021-11-03
  • 2021-12-03
  • 2022-12-23
猜你喜欢
  • 2021-10-25
  • 2021-09-23
  • 2022-12-23
  • 2021-11-21
  • 2022-02-17
  • 2022-12-23
  • 2021-10-08
相关资源
相似解决方案