| Crates.io | gitai |
| lib.rs | gitai |
| version | 0.1.1 |
| created_at | 2025-04-20 14:05:16.059256+00 |
| updated_at | 2025-04-20 15:00:38.308207+00 |
| description | GitAI is a command-line tool powered by AI that makes your Git workflow smoother and easier. It helps you create commit messages, understand changes, and manage your repository—all without needing an API key. |
| homepage | |
| repository | https://github.com/YaSh8202/git-ai-cli |
| max_upload_size | |
| id | 1641732 |
| size | 109,691 |
GitAI is a command-line tool powered by AI that makes your Git workflow smoother and easier. It helps you create commit messages, understand changes, and manage your repository—all without needing an API key.
Before you begin, ensure you have git installed on your system
[!IMPORTANT]
cargois a package manager forrust, and is installed automatically when you installrust. See installation guide
cargo install gitai
Create meaningful commit messages for your staged changes:
# Basic usage - generates a commit message based on staged changes
gitai generate
# Output: "feat(button.tsx): Update button color to blue"
Understand what changed and why:
# Explain current changes in your working directory
gitai explain --diff # All changes
gitai explain --diff --staged # Only staged changes
# Explain specific commits
gitai explain HEAD # Latest commit
gitai explain abc123f # Specific commit
Configure your preferred AI provider:
# Using CLI arguments
gitai -p openai -k "your-api-key" -m "gpt-4o" generate
# Using environment variables
export GITAI_PROVIDER="openai"
export GITAI_API_KEY="your-api-key"
export GITAI_MODEL="gpt-4o"