What is GitGenius? 🤔
GitGenius is a comprehensive TypeScript npm CLI package that revolutionizes how developers write commit messages. Using advanced AI technology from OpenAI and Google Gemini, it generates intelligent, contextual commit messages that follow conventional commit standards.
📦 View on NPM🚀 Quick Installation
Get started in seconds with a global installation:
Then use either command:
$ gg # Short alias
✨ What Can GitGenius Do?
AI-Powered Messages
Generate intelligent commit messages using OpenAI GPT or Google Gemini based on your git changes
Interactive Editing
Built-in editor to customize generated messages before committing
Branch Management
Interactive branch switching and management with clipboard integration
Git Statistics
Comprehensive analytics and insights about your commit history
Multiple Commit Types
Support for conventional commits: feat, fix, docs, style, refactor, test, and more
Clipboard Integration
Copy generated messages to clipboard for use anywhere
🎯 See GitGenius in Action
🛠️ Key Features
- ✅ AI commit message generation (OpenAI & Gemini)
- ✅ Interactive editing capabilities
- ✅ Advanced branch management
- ✅ Comprehensive configuration management
- ✅ Multiple commit types support
- ✅ Copy to clipboard functionality
- ✅ Previous message retrieval
- ✅ Git statistics and analytics
- ✅ Custom template system
- ✅ Command aliases (gg shorthand)
- ✅ Environment variable configuration
- ✅ Cross-platform support (Windows, macOS, Linux)
🔑 Configuration
Set up your AI provider:
$ gitgenius config provider gemini
Add your API key:
$ export GEMINI_API_KEY="your-api-key"