Git Pilot
AI-powered Git toolkit that enhances workflow with intelligent commit messages, pull request generation, code reviews, changelogs, and more. It integrates with various LLM providers to automate and improve your development process.
Features
- Smart Commit Messages: Generate meaningful commit messages based on your code changes
- Pull Request Generation: Automatically create detailed PR descriptions with context
- Code Reviews: Get AI-assisted code reviews with suggestions
- Changelogs: Generate release notes and changelogs from commit history
- Multiple LLM Support: Works with OpenAI, Anthropic, Google, and other providers
- Git Config Integration: Store configurations in Git config for project-specific settings
- Wire Protocol Support: Efficient caching and synchronization for remote repositories
Installation
From Source
Configuration
gitai uses Git config to store settings. Configure your LLM provider:
# Set global provider (e.g., Google Gemini)
# Or set locally for a project
Supported providers: openai, anthropic, google, cohere, groq, ollama, etc.
You can also use the config command:
How to Use
Generating Commit Messages
# Stage your changes
# Generate a commit message
# Or specify a custom instruction
Creating Pull Requests
# Create a PR description for current branch vs main
# Specify branches
# Use different detail level
Code Reviews
# Review changes in current branch
# Review specific branches
# Review with custom instructions
Generating Changelogs
# Generate changelog from commits
# Specify version and detail level
# Generate release notes
Managing Configuration
Other Commands
# List available instruction presets
# Serve as MCP server
# Wire operations (caching, syncing)
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
License
Licensed under the MIT License. See LICENSE.md for details.