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.
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! 😄
Subscribe to my newsletter
Read articles from Laststance directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Laststance
Laststance
Laststance.io, gig for become best Framework author from a contract developer. 🛣️