About the Tool
Automates your git workflow. It stages everything (git add --all), sends your diff to an AI model to generate a commit message, then commits and pushes — all in one command.
I built this for myself to speed up my own workflow and realised it could be helpful to others. It uses a free AI API I built myself — API key optional. The API endpoint at ai.hellyer.kiwi/gitmeh is built with Symfony, while the git-meh CLI itself is written in Go.
Why Use This
Writing polished commit messages takes time and breaks your flow. Let the tool handle it so you can focus on building.
- Full Staging: Runs
git add --allto stage every change in one pass so nothing is missed. - AI Commit Messages: Sends your staged diff to my own free AI API (currently utilizing Deepseek V4 Flash) that returns a descriptive commit message. No API key required — it works out of the box.
- Retry & Fallback: Automatically retries on transient errors with exponential backoff (1s, 2s, 4s), then tries fallback models if the primary keeps failing.
- Inline Editing: Review the AI message and edit it interactively before committing — cursor keys, backspace, multi-byte UTF-8 support.
- Automatic Push: Pushes your changes directly to the remote so you can move on immediately.
- Cross-Platform: Prebuilt binaries for Linux and macOS, amd64 and arm64. If you would like a Windows version, let me know.
Installation
# From source (requires Go) make build && cp git-meh ~/.local/bin/ # Or download a prebuilt binary ./install.sh # Run from any git repository — Git discovers it as a subcommand git meh