git-ac-cli
v1.3.1
Published
AI Git Commit Message Generator
Readme
git-ac 🤖
AI-Powered Git Commit Generator automatically generates meaningful commit messages using the Google Gemini API.
git-ac (Auto Commit/AI Commit) is a CLI tool that integrates natively with Git. It analyzes your staged changes (git diff --cached), sends them to a lightweight AI model, and generates a conventional commit message for you.
📦 Installation
Install globally via NPM to access it anywhere:
npm install -g git-ac-cliSetup
- Get your free API key from Google AI Studio.
- Run any
git-accommand (e.g.,git-ac commitorgit ac commit). - Paste the key when prompted.
- Boom ! You're all set to use
git-ac!
🚀 Usage
git-ac commit
or
git ac commitThis will automatically stage all your unstaged changes and generate a commit message for everything.
git-ac commit --staged
or
git ac commit -sIf you prefer to manually stage your files with git add, you can use the --staged (or -s) flag.
🚀 Features
- Native Git Integration: Works as a git subcommand (
git ac). - Smart Analysis: Understands your code changes, not just file names.
- Conventional Commits: Generates standard messages (e.g.,
feat: allow user to login,fix: resolve null pointer). - Fast: Optimized for speed using Go.
- Cross-Platform: Works on Windows, Linux, and macOS.
