Skip to content

AI-powered git commit message generator with TUI. Select files, generate conventional commits, split changes, and more.

License

Notifications You must be signed in to change notification settings

hluaguo/commity

Repository files navigation

commity

Go Version Release License

AI-powered git commit message generator with a beautiful terminal UI.

Features

  • AI-Generated Commits: Generates meaningful commit messages using OpenAI-compatible APIs
  • Smart Split Detection: Automatically suggests splitting unrelated changes into separate commits
  • Conventional Commits: Follows conventional commit format (feat, fix, docs, etc.)
  • Interactive TUI: Beautiful terminal interface for file selection and message confirmation
  • Customizable Themes: Choose from tokyonight, dracula, catppuccin, or nord
  • Custom Instructions: Add your own instructions to guide AI message generation

Installation

Homebrew

brew install hluaguo/tap/commity

Go Install

go install github.com/hluaguo/commity/cmd/commity@latest

From Source

git clone https://github.com/hluaguo/commity.git
cd commity
make install

Supported Providers

Any OpenAI-compatible API works: (will support more)

  • OpenAI
  • OpenRouter
  • Ollama (local)
  • Azure OpenAI
  • Any OpenAI-compatible endpoint

Usage

# Run in any git repository with changes
commity

Workflow

  1. Select files: Choose which files to include in the commit
  2. Generate: AI analyzes changes and generates commit message
  3. Confirm: Review the message, edit if needed, or regenerate with feedback
  4. Commit: Confirm to create the commit

Development

# Build
make build

# Run tests
make test

# Lint
make lint

# Install locally
make install

License

MIT License - see LICENSE for details.

About

AI-powered git commit message generator with TUI. Select files, generate conventional commits, split changes, and more.

Topics

Resources

License

Stars

Watchers

Forks