Day 24 - Use Conventional Commits
Writing good git commits is a skill that most developers lack.
Whats a Good Commit Look Like?
-
It’s structured correctly, separating headline and body
-
It’s easy to read, skim, and understand
-
It’s written in Imperative mood
-
It delivers intention and reasoning
-
It gives context about the problem
-
It tells you why, not how
Every skill needs practise. So commit small and often.
Use an industry standard to add semantic meaning to your commits.
The Conventional Commit Format
<type>[optional scope]: <description>
Example: feat(api): secure endpoint for user roles
Read The Standard https://www.conventionalcommits.org/
Or See my personal Summary: Conventional Commits
Why You Should Start Using Conventional Commits
-
Train yourself to make smaller, and atomic commits
-
Elevate your Naming Skill (Totally underrated)
-
Makes your commits skimmable (And easier to review)
-
Forces yourself to take a step back upon commit (And not get lost)
Know your worth. And Hone your Craft. Daily.
First published on Typeshare