git-commit-auto.sh
GitHub
v1.0.0 Stable

Stop writing
commit messages.

Let Gemini analyze your staged changes and generate semantic, conventional commits in milliseconds.

Install CLI
$ git commit-auto
user@dev-machine ~
$ git add .
$ git commit-auto push
Analyzing diff...
Generating Conventional Commit...
feat(api): integrate Gemini AI for auto-commits
[main 8a2b9c] feat(api): integrate Gemini AI...
3 files changed, 45 insertions(+)
Enumerating objects: 5, done.
To github.com:user/repo.git
Dependencies:
git
curl
jq

Four modes. Total control.

Streamline your workflow with these simple commands.

01 — STANDARD
$ git commit-auto

Generate & Commit

Replaces git commit -m. Generates a message based on staged changes and commits it locally.

02 — DEPLOY
$ git commit-auto push

Commit & Push

Generates the message, creates the commit, and immediately pushes to your remote branch in one go.

03 — FIX
$ git commit-auto regenerate

Amend & Retry

Not happy with the AI's output? This generates a fresh message and amends the previous commit instantly.

04 — LOG
$ git commit-auto changelog

Update Changelog

Automatically appends the new commit message to your CHANGELOG.md file under today's date.

Installation

Setup takes less than 2 minutes.

1

Get a Gemini API Key

Go to Google AI Studio or Cloud Console to generate your key.

Get API Key →
2

Set Environment Variable

Add this line at the end to your shell config: nano (~/.bashrc, ~/.zshrc, etc)

export GEMINI_API_KEY="YOUR_API_KEY_HERE"

Remember to reload your shell after adding this.

3

Install the Script

Download, make executable, and move to your path.

# 1. Download the file curl -L https://raw.githubusercontent.com/bonheur15/git-commit-auto/main/git-commit-auto.sh -o git-commit-auto # 2. Make executable chmod +x git-commit-auto # 3. Move to PATH sudo mv git-commit-auto /usr/local/bin/