DEV Community

Discussion on: How to make a good `git commit`

Collapse
 
hasone profile image
HasOne • Edited

So informative, I love it! I do commit like:

git commit -m '[ADDED] button component added'
git commit -m '[FIX] now button component accepts margin as props'
git commit -m '[TYPO/REMOVE/REFACTOR] .....'
Enter fullscreen mode Exit fullscreen mode

I don't know if this is good way to do, but nobody complaint about it unit now on my team. thank you!

Collapse
 
mishmanners profile image
Michelle Mannering

My pleasure. Yeah this is good. It shows what is happening, and I love the fact you add a category in square brackets ❤️