Commit convention

gitguide

Types of Commit Conventions

There are two main types of commit conventions:

1. Custom Conventions

Custom conventions can be defined by the team or project using any rules they see fit. Some common rules include:

Dòng thứ 1: Tóm tắt nội dung thay đổi trong commit
Dòng thứ 2: Dòng trống
Dòng thứ 3 trở đi: Lý do đã thay đổi

2. Conventional Commits

Conventional commits are a set of widely used guidelines for writing commit messages that are human- and machine-readable. They are based on the following format:

[type]([optional scope]): [description]

[optional body]

[optional footer(s)]

Where:

[type] and [description] are required in every commit. [type] is used to classify the commit:

Example:

feat(oms-web): clone item detail page from wms
feat(wms-web): create warehouse

Conclusion

The choice of whether to use custom conventions or conventional commits depends on the team and the rules of the project. However, commits should always be clear and concise, and using conventional commits can make it easier to read and find commits in the future.

References