How to commit
How to commit like a pro
Method: Conventional Commits
Advantages
- Automatically generate changelogs
- Determine semantic version based
- Structured commit history
Structure
1 | <type>[optional scope]: <description> |
- type:
- fix - use for bug fixes
- feat - use for code features
- build - use for build changes
- style - use for styling changes
- chore - use for other changes
- refactor - use for refactoring code
- ci - use for CI changes
- test - use for test changes
- docs - use for documentation changes
- Optional scope:
- Any additional information
- use nouns
- Description:
- Use imperative mood
- Use present tense
- Use first letter capitalized
- No period at the end
- No dot at the end
- Optional body:
- Free form
- Explain changes you’ve made
- Optional footer(s):
- Word token used
- Example:
1
2
3Resolves #10
Development-Method: Pair Programming
With: James
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.