Sometimes it's hard to always write simple and clean commits, but we have a simple npm package called git-cz or commitizen wich help us to write better commits:
https://www.npmjs.com/package/git-cz
https://www.npmjs.com/package/commitizen
Follow the instructions at the page above and with a simple command as: git cz at your terminal you'll have the following options:
I choosed the feat option:
Now, I add more information
Then it asks if your code has some BREAKING CHANGES or close any issue
And this is the result:
Obviously you can follow the instructions here of how to write better commits https://www.conventionalcommits.org/en/v1.0.0/ but it is very useful to have a little automate help





Top comments (1)
I'm kinda a manual guy when it comes to commit messages. Somehow, manually writing good commit messages gives me a bit of satisfaction. ๐
Learning about conventional commit messages were a game-changer to my git life IMO. And if a tool helps everybody write good conventional commit messages by automating them and reducing the mental friction in doing so, I'm all for it. โจ
Some comments may only be visible to logged-in visitors. Sign in to view all comments.