Write Better Commits with AI

Generate conventional commit messages using local LLMs via Ollama. Say goodbye to writing commit messages manually!

Crate version Downloads License
$ cmgenius . > Analyzing changes... > Generating commit message... feat(core): implement AI-powered commit message generation - Add integration with Ollama for local LLM support - Implement conventional commit format parsing - Add support for multiple model selection

Features

AI-Powered

Leverages local LLMs through Ollama for intelligent commit message generation.

Lightning Fast

Generates commit messages in seconds using local processing power.

Privacy First

All processing happens locally - your code never leaves your machine.

Installation

Using Cargo

cargo install commitgenius

Using APT (Debian/Ubuntu)

curl -s --compressed "https://bannawandoor27.github.io/Commitgenius/apt-repo/KEY.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/commitgenius.gpg
sudo curl -s --compressed -o /etc/apt/sources.list.d/commitgenius.list "https://bannawandoor27.github.io/Commitgenius/apt-repo/commitgenius.list"
sudo apt update
sudo apt install commitgenius

How to Use

1

Stage Your Changes

Stage your changes using the dot notation or specify files:

cmgenius .
2

Select Model (Optional)

Choose a specific Ollama model:

cmgenius --model qwen2.5:7b .
3

Review & Commit

CommitGenius will analyze your changes and create a conventional commit message automatically!