DEV Community

Ryota Murakami
Ryota Murakami

Posted on • Edited on

I've just released git-gpt-commit v0.9.0! 🎉

I've just released git-gpt-commit v0.9.0 — a Git extension that uses OpenAI's GPT models to automatically generate commit messages via the git gpt commit command.

📺 Demo Video


What’s New in v0.9.0 ✨

🚀 Support for GPT-4o

The default model has been upgraded to OpenAI’s GPT-4o.
This model is known for its blazing-fast response speed (about twice as fast as GPT-4.1), allowing it to generate commit messages in an instant.
It’s also very cost-efficient, at half the price of GPT-4-turbo.


🌐 Language Selection Command

Previously, only English was supported. Now, with:

git gpt lang
Enter fullscreen mode Exit fullscreen mode

You can choose from 12 languages for your commit messages:
English, Spanish, Japanese, French, German, Italian, Korean, Chinese (Simplified & Traditional), Dutch, Russian, and Brazilian Portuguese.


🏷️ Prefix Toggle Command

Previously, there was no option to add prefixes to your commits. Now, with:

git gpt prefix
Enter fullscreen mode Exit fullscreen mode

You can toggle the inclusion of commit prefixes like feat:, fix:, or refactor:.


🔑 API Key Management

Previously, you had to write your API key in a .env file in your project directory. Now, with:

git gpt open-api-key
Enter fullscreen mode Exit fullscreen mode

You can now safely add and manage your OpenAI API key directly from the CLI.
The traditional .env method is still supported as well.


⚙️ Configuration Management

git gpt config
Enter fullscreen mode Exit fullscreen mode

You can now view all your current settings at once.
Checking and updating configuration has never been easier.


How to Use

Once installed, start by registering your OpenAI API key using the command above.

Then, just stage your changes with git add, and run:

git gpt commit
Enter fullscreen mode Exit fullscreen mode

The tool will analyze the staged changes, send them to the GPT model, and generate a context-aware commit message.
You can accept the suggestion as-is or cancel and write your own message if you'd prefer.


Installation

You’ll need an OpenAI API key.

npm install -g @laststance/git-gpt-commit
Enter fullscreen mode Exit fullscreen mode

Why I Created git-gpt-commit

While IDEs like VSCode and Cursor offer AI-assisted commit message generation, I couldn’t find a CLI tool that does the same — and that’s where I spend most of my time working with Git.
Sometimes I just don’t feel like coming up with a message, so I wanted to make the process easier 😅


Most of the features I personally wanted are now implemented, so I’m pretty happy with this release.
If you have ideas to make it even better, feel free to send a PR — I’d love to see your contributions! 😄


Links: GitHubnpm

Top comments (13)

Collapse
 
perisicnikola37 profile image
Nikola Perišić

Is there any demo video? Just to see it in action

Collapse
 
malloc007 profile image
Ryota Murakami

The dev.to limitation, allowed only upload static image(without gif).
Gif image avalable on Github repository. github.com/laststance/git-gpt-comm...
But I'll take record video and upload to Youtube soon!

Collapse
 
perisicnikola37 profile image
Nikola Perišić

Awesome!

Thread Thread
 
malloc007 profile image
Ryota Murakami

This is demo video
youtu.be/-0iVFHxXawo

Thread Thread
 
melroy89 profile image
Melroy van den Berg

Nice

Thread Thread
 
malloc007 profile image
Ryota Murakami

Thank you👍

Collapse
 
nevodavid profile image
Nevo David

Man, writing commit messages is always a pain, this is gonna save me so much time lol

Collapse
 
malloc007 profile image
Ryota Murakami

@nevodavid Thank you!
I made this with the exact same motivation as you!

Collapse
 
jakob1379 profile image
Jakob Guldberg Aaes

What are the advantages over opencommit?

Collapse
 
malloc007 profile image
Ryota Murakami

Nothing!
I didn't know opencommit before I made this 😂

Collapse
 
nahom_kasa_a3859f822d2b4c profile image
nahom kasa
Collapse
 
valdineisantos profile image
Valdinei dos Santos

Nice job! Commit messages with AI is fantastic

Collapse
 
malloc007 profile image
Ryota Murakami

Thank you😊

Some comments may only be visible to logged-in visitors. Sign in to view all comments.