Skip to content
Projects

About

An AI-powered Git extension that generates commit messages using OpenAI's model.

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
-1
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Git GPT Commit


An AI-powered Git extension that generates commit messages using OpenAI's models, streamlining the commit process and improving developer productivity.


cover_image


📺 Demo Video 📖 v0.9.0 Release Post

Installation

There are two ways to install the Git extension: using npm or manual installation. Node.js 22.12.0 or later is required.

  • Step1: run the following command:
npm install -g @laststance/git-gpt-commit@latest
  • Step2: add your OpenAI API key using the git gpt open-api-key
git gpt open-api-key

open-api-key


Select Add or update API key from the menu and enter your API key when prompted. Your key will be securely stored in your user configuration.

  • Step3: commit your changes with git gpt commit
git add --all
git gpt commit // generate commit message with AI

✅ You've completed all setup!

Available Commands

  • Commit with AI-generated message

    git gpt commit
    

    Generates a commit message based on your staged changes.

  • Select AI Model

    git gpt model
    

    Choose from available models (gpt-6-luna, gpt-6.1-terra, gpt-6.2-sol). The default is gpt-6-luna, the cheapest and fastest. If your saved config names a model OpenAI has retired (for example gpt-4o), the nearest GPT-6 model is used instead; the config file is not rewritten.

  • Change Commit Message Language

    git gpt lang
    

    Select the language for commit messages (English, Spanish, Japanese, French, German, Italian, Korean, Chinese, Dutch, Russian, Portuguese).

  • Toggle Commit Prefix

    git gpt prefix
    

    Enable/disable conventional commit prefixes (feat:, fix:, chore:, etc.).

  • Manage OpenAI API Key

    git gpt open-api-key
    

    Add, update, display, or delete your stored OpenAI API key.

  • Show Current Configuration

    git gpt config
    

    Display your current settings (model, language, prefix status, API key).

Configuration

Your settings are stored in ~/.git-gpt-commit-config.json and automatically loaded when you use the extension. You can manage your configuration through the commands above or directly edit this file.

Credits

Original package doesn't work due to config mistake 'package.json'. https://github.com/nooqta/git-commit-gpt
Therefore I fix it and added some features as a '@laststance/git-gpt-commit'.

Thanks to

License

This project is licensed under the MIT License.

Explore related projects

Loading…