Skip to content

The most powerful git commit assistant ever! `aigit commit` is as simple as `git commit`.

License

Notifications You must be signed in to change notification settings

agentsdance/aigit

Repository files navigation

aigit

ไธญๆ–‡ๆ–‡ๆกฃ (Chinese Documentation) | English Documentation

The most powerful git commit assistant ever!

It's a command-line tool that streamlines the git commit process by automatically generating meaningful and standardized commit messages, including title and body.

aigit commit is as simple as git commit.

Supported ๐Ÿค– AI Providers

Getting Started

Installation

Option 1: Homebrew (Recommended)

# Add the repository as a tap (use full URL) brew tap zzxwill/aigit https://github.com/zzxwill/aigit.git # Install stable version (from releases) brew install aigit # Install development version (from dev branch) brew install --HEAD aigit # Alternative: Install from local formula file# curl -O https://raw.githubusercontent.com/zzxwill/aigit/master/Formula/aigit.rb# brew install --formula aigit.rb

Option 2: Download Binary

You can install aigit in one of the following ways:

  1. Using go install:
go install github.com/zzxwill/aigit@latest
$ aigit version v0.0.8
  1. Download from releases:
  • Go to the releases page and download the binary for your platform.
  • Rename the binary to aigit and move it to /usr/local/bin/aigit.
chmod +x aigit && sudo mv aigit /usr/local/bin/aigit

Option 3: Build from Source

git clone https://github.com/zzxwill/aigit.git cd aigit go build -o aigit main.go sudo mv aigit /usr/local/bin/aigit

Generate commit message

$ aigit commit ๐Ÿค– Generating commit message... ๐Ÿ“ Generated commit message: โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” feat(llm): add support for volcengine-go-sdk This commit adds support for the volcengine-go-sdk for integrating with Doubao LLM service. The following changes were made: - Provider type and APIKey field were added to the llm.Config struct. - generateDoubaoCommitMessage functionwas updated to use the volcengine-go-sdk. - The client is initialized with the apiKey and endpointId. - A prompt is constructed and sent to the CreateChatCompletion API. - The first choice's message is returned as the commit message.โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”๐Ÿค” What would you like to do?1. Commit this message (default)2. Regenerate messageEnter your choice (press Enter for default):โœ… Successfully committed changes!

Generate commit message with your own AI API Key

$ aigit auth add gemini AIzaSyCb56bjWn02e2v4s_TxHMDnHbSJQSx_tu8 Successfully added API key for gemini $ aigit auth add doubao 6e3e438c-a380-4ed5-b597-e01cb82bc4df ep-20250110202503-fdkgq Successfully added API key for doubao $ aigit auth ls Configured providers: gemini *default doubao $ aigit commit ๐Ÿค– Generating commit message... ๐Ÿ“ Generated commit message: โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” feat(llm): add support for volcengine-go-sdk This commit adds support for the volcengine-go-sdk for integrating with Doubao LLM service. The following changes were made: - Provider type and APIKey field were added to the llm.Config struct. - generateDoubaoCommitMessage functionwas updated to use the volcengine-go-sdk. - The client is initialized with the apiKey and endpointId. - A prompt is constructed and sent to the CreateChatCompletion API. - The first choice's message is returned as the commit message.โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”๐Ÿค” What would you like to do?1. Commit this message (default)2. Regenerate messageEnter your choice (press Enter for default): 2๐Ÿค– Regenerating commit message...๐Ÿ“ Generated commit message:โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”feat(llm): add support for volcengine-go-sdkThis commit adds support for the volcengine-go-sdk for integrating with Doubao LLM service.The following changes were made:- Provider type and APIKey field were added to the llm.Config struct.- generateDoubaoCommitMessage function was updated to use the volcengine-go-sdk.- The client is initialized with the apiKey and endpointId.- A prompt is constructed and sent to the CreateChatCompletion API.- The first choice's message is returned as the commit message. โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” ๐Ÿค” What would you like to do? 1. Commit this message (default) 2. Regenerate message Enter your choice (press Enter for default): 1 โœ… Successfully committed changes!

About

The most powerful git commit assistant ever! `aigit commit` is as simple as `git commit`.

Resources

License

Stars

Watchers

Forks

Packages

No packages published