Skip to main content

How to commit your codes

This section outlines some common settings we use in our projects when committing code. By parsing commits, we can catch bugs early, tag features, review code more effectively, and maintain a clean and well-organized commit history!

List of commit command

NoPresetDescriptionExample
1docsDocumentation only changesdocs: add button document
2featureAdd new featurefeature: add button
3fixFix bugsfix: fix button color
4fixmeMark a bug to fixfixme: update button color
5performanceImprove performance of some codeperformance: change search array method
6revertReverts a previous commitreverse: reverse commit 'abc'
7styleChanges that do not affect the meaning of the code(white-space, formatting, missing semi-colons, etc)style: change page layout
8testAdding missing tests or correcting existing teststest: add test find all function
9todoMark todo work, add tags TODOtodo: add test find all function
10updateSmall updateupdate: add test find all function