DEV Community

Dima Sukharev
Dima Sukharev

Posted on • Updated on

Master git commits with AI

Ever faced the challenge of crafting the commit message after 5+ files are changed?

Switching from writing code to thinking about commit messages can be a time-consuming distraction. It's all too easy to resort to one-liners like "updates", "bug fix", or "refactoring" and leave a more detailed description for merges.

OpenCommit — open-source CLI that creates commits for you: OpenCommit.

opencommit — a new era of commit messages

OpenCommit leverages the conventional commits convention, ensuring your commit messages are both concise and informative. Want a little fun in your commits? Enable the GitMoji setting!

Getting started is easy. Install OpenCommit via npm:

npm i -g opencommit
Enter fullscreen mode Exit fullscreen mode

Then, simply type oc and press "Enter" in your terminal:

Enter fullscreen mode Exit fullscreen mode

That's it.

Check out the documentation.

opencommit animation

if you also think that this is best lib of the millennium, keep an eye on my future innovations by following me on twitter YOU WILL BE SHOKED

Top comments (0)