guanguans/ai-commit

Automagically generate conventional git commit messages with AI. - 使用 AI 自动生成约定式 git 提交信息。

What it solves

It automates the creation of git commit messages, removing the manual effort of writing descriptive and standardized messages for every code change.

How it works

The tool analyzes the changes in your code (via git diff) and uses an AI generator to produce a "conventional commit" message. It allows users to either let the AI automatically determine the commit type (e.g., feat, fix, chore) or manually select one from a list. After generating the message, it presents the the subject and body for user confirmation before executing the git commit.

Who it’s for

Developers who want to maintain a clean, standardized commit history without writing every message by hand.

Highlights

  • Multi-AI Support: Integrates with various AI providers including OpenAI, Moonshot, Ernie Bot, Bito CLI, and GitHub Copilot/Models CLI.
  • Conventional Commits: Specifically designed to generate messages following the Conventional Commits specification.
  • Interactive Workflow: Provides a step-by-step confirmation process to ensure the generated message is accurate.
  • Flexible Configuration: Supports global and local configuration for API keys and default generators.

Related

  • Project
  • Project
  • Project
  • Project
  • Project