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.
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
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
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
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
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
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
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! 😄
Top comments (13)
Is there any demo video? Just to see it in action
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!
Awesome!
This is demo video
youtu.be/-0iVFHxXawo
Nice
Thank you👍
Man, writing commit messages is always a pain, this is gonna save me so much time lol
@nevodavid Thank you!
I made this with the exact same motivation as you!
What are the advantages over opencommit?
Nothing!
I didn't know opencommit before I made this 😂
dev.to/nahom_kasa_a3859f822d2b4c/a...
Nice job! Commit messages with AI is fantastic
Thank you😊
Some comments may only be visible to logged-in visitors. Sign in to view all comments.