Use AI to commit like a PRO in 1 second

Valentsea
Total
0
Shares

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.

opencommit — before and after

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
Enter fullscreen mode

Exit fullscreen mode

After installing type oc and hit “Enter” in a terminal:

oc
Enter fullscreen mode

Exit fullscreen mode

That’s it.

For more info read the docs.

opencommit animation

Total
0
Shares
Valentsea

What is RedwoodJS

RedwoodJS is a full-stack JavaScript framework that aims to make building web applications simple and intuitive. It is…

You May Also Like