OpenCommit: GPT generates impressive commits in 1 second 🤯🔫 (open-source)

Dima Sukharev - Mar 27 '23 - - Dev Community

first — let's grow my twitter, so i can tell about my inventions quicker and make the world even better place (or not, idk)


I've been struggling 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", "refactoring 2", "final refactoring" and then tried to come up with a good general message when merging a branch to production.

It has changed with THE FIRST AI REVOLUTION :)) I mean all this GPTs..

Two weeks ago I open-sourced OpenCommit. It can answer WHY the change was done if you change model to GPT-4 in settings! Insane.

opencommit — comparison

The lib uses conventional commits convention which makes commits meaningful. You can also turn on GitMoji setting if you like. And select different languages and many other features (I got 12 PRs so far)

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

If you want OpenCommit to be used by your IDE do:

oc hook set
Enter fullscreen mode Exit fullscreen mode

That's it.

For more features read the docs.

opencommit.gif

you may follow my twitter or not


btw, i have one more great tool for making GPT write extremely accurate code for you https://dev.to/disukharev/aitdd-ai-cli-for-tdd-you-write-the-test-ai-makes-it-green-32bn

. . . . . . . . . . . . . . .
Terabox Video Player