I struggled making commit messages since 2017. When you think of a commit message — you switch context from writing code. When you switch context — you waste time. Wasting time is lame.
I usually made 1 line commits like “amends”, “fixed bug”, “refactoring” and then tried to come up with a good general message when merging a branch to production.
It has changed when ChatGPT was published.
There is an open-source library OpenCommit.
The library uses conventional commits convention which makes commits concise and comprehensive. You can also turn on GitMoji setting if you like.
Simply install it with npm:
npm i -g opencommit
After installing type oc
and hit “Enter” in a terminal:
oc
That’s it.
For more info read the docs.