Git Helper CLI is an intelligent command-line tool that revolutionizes Git workflows by combining traditional Git operations with AI-powered commit message generation. Using Groq's lightning-fast AI models, it analyzes your code changes and creates professional, conventional commit messages automatically - all while keeping your workflow simple and efficient.
- 🤖 AI-Powered Commit Messages - Automatically generates conventional commit messages using Groq AI
- ⚡ Lightning Fast - Built on Groq's infrastructure for sub-second response times
- 🎯 Smart Git Operations - Stage, commit, and push with a single command
- 🔧 Flexible Configuration - Project-specific and global settings support
- 🆓 16 Free AI Models - Choose from multiple free Groq models optimized for different use cases
- 🛡️ Secure by Design - API keys stored locally, never committed to repos
- 📋 Conventional Commits - Follows industry-standard commit message format
- 🌈 Beautiful CLI - Colorful, intuitive interface with progress indicators
Install Git Helper CLI globally via npm:
npm install -g git-helper-cli
# See all 16 available free models
git-helper config --list-models
# Set your preferred model (recommended: llama-3.3-70b-versatile)
git-helper config --set-model llama-3.3-70b-versatile
# Get a free API key from https://console.groq.com/
git-helper config --set-key gsk_your_groq_api_key_here
# Stage changes and let AI create the commit message
git-helper push --ai
# Or generate a message without committing
git-helper commit-msg
Let AI analyze your changes and create the perfect commit message:
git-helper push --ai
git-helper push --ai --branch feature/new-feature
Traditional push with your own message:
git-helper push "feat(auth): add OAuth integration"
git-helper push "fix: resolve memory leak" --branch bugfix/memory
git-helper pull
git-helper pull --branch main
Preview AI-generated messages without committing:
git-helper commit-msg
# Dry run - see what would happen without executing
git-helper push --ai --dry-run
# Use current branch automatically
git-helper push "your message" # auto-detects current branch
Choose from 16 free models optimized for different needs:
Model | Best For | Speed |
---|---|---|
llama-3.3-70b-versatile ⭐ |
Overall best performance | Fast |
qwen-2.5-coder-32b |
Code understanding | Fast |
deepseek-r1-distill-llama-70b |
Complex reasoning | Medium |
llama-3.1-8b-instruct |
Speed & efficiency | Ultra-fast |
mixtral-8x7b-32768 |
Large context | Medium |
⭐ = Recommended default
# Set API key for current project only
git-helper config --set-key gsk_your_key
# Set model for current project
git-helper config --set-model llama-3.1-70b-instruct
# View current configuration
git-helper config --show
# Set global defaults
git-helper config --set-global-key gsk_your_key
git-helper config --set-global-model qwen-2.5-coder-32b
# Reset configurations
git-helper config --reset # Reset project config
git-helper config --reset-global # Reset global config
The tool uses this priority order:
-
Environment Variable (
GROQ_API_KEY
) -
Project Config (
.git-helper-config.json
) -
Global Config (
~/.git-helper-global.json
)
- Local Storage: API keys stored locally, never transmitted except to Groq
- Auto .gitignore: Config files automatically added to .gitignore
- Input Sanitization: Prevents command injection attacks
- Validation: Checks for git repos and staged changes
# 1. Make your code changes
vim src/auth.js
# 2. Let AI create the perfect commit message and push
git-helper push --ai
# Output:
# ✅ AI generated message: "feat(auth): add JWT token validation"
# ✅ Changes pushed successfully!
# Each team member sets their own API key
git-helper config --set-key gsk_alice_key # Alice's key
git-helper config --set-key gsk_bob_key # Bob's key
# Config file is gitignored automatically
# Everyone uses the same model settings
git-helper config --set-model qwen-2.5-coder-32b
# Use code-optimized model for backend
cd backend-api/
git-helper config --set-model qwen-2.5-coder-32b
# Use general model for documentation
cd docs/
git-helper config --set-model llama-3.3-70b-versatile
See what would happen without executing:
git-helper push --ai --dry-run
# Output:
# Dry run - would execute:
# git add .
# git commit -m "feat(api): add user authentication"
# git push origin main
Automatically uses your current branch:
git checkout feature/user-auth
git-helper push --ai # Automatically pushes to feature/user-auth
- Checks if you're in a git repository
- Verifies staged changes exist
- Validates API keys and models
- Sanitizes commit messages
We welcome contributions! Here's how you can help:
- Fork the repository
-
Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes
- Test thoroughly
-
Use the tool to commit:
git-helper push --ai
😉 - Submit a pull request
git clone https://github.com/your-username/git-helper-cli
cd git-helper-cli
npm install
npm link # Test locally
Traditional Git | Git Helper CLI |
---|---|
git add . |
✅ Automated |
Think of commit message | 🤖 AI generates it |
git commit -m "message" |
✅ Automated |
git push origin branch |
✅ Automated |
Remember conventional format | 📋 Always follows standards |
Context switching to think | ⚡ Instant, context-aware |
This project is licensed under the MIT License - see the LICENSE file for details.
- Groq for providing lightning-fast AI inference
- Commander.js for excellent CLI framework
- Chalk for beautiful terminal colors
- The open-source community for inspiration
git
ai
cli
groq
commit-messages
conventional-commits
developer-tools
automation
git-helper
command-line
productivity
llama
ai-powered
git-workflow
Made with ❤️ for developers who value their time