General Questions
What is GitWhisper?
What is GitWhisper?
- AI-powered commit message generation
- Supports multiple AI models (OpenAI, Claude, Gemini, Ollama, etc.)
- Interactive commit confirmation and editing
- Multi-language support
- Code analysis and suggestions
- Conventional commits with emojis
How does GitWhisper work?
How does GitWhisper work?
- Checks for staged changes in your Git repository
- Retrieves the diff of your staged changes
- Sends the diff to your selected AI model
- Generates a commit message following conventional commit format
- Shows you an interactive confirmation menu
- Applies the message (with optional prefix/tag) when you confirm
Is GitWhisper free to use?
Is GitWhisper free to use?
freemodel powered by LLM7.io (no API key required)- 60 requests/hour, 8k chars per request
- Ollama (self-hosted, runs locally)
- Unlimited usage, requires local setup
- OpenAI (GPT models) - Pay per usage
- Claude (Anthropic) - Pay per usage
- Gemini (Google) - Pay per usage
- Other cloud AI providers
Do I need programming knowledge to use GitWhisper?
Do I need programming knowledge to use GitWhisper?
- How to use Git (staging, committing)
- Basic command line usage
- How to install command-line tools
- How to write good commit messages (that’s what GitWhisper does!)
- How AI models work
- Advanced Git workflows
Installation & Setup
How do I install GitWhisper?
How do I install GitWhisper?
What are the system requirements?
What are the system requirements?
- Git installed and available in PATH
- Internet connection (for cloud AI models)
- Terminal/command line access
- macOS (Intel and Apple Silicon)
- Linux (x64 and ARM64)
- Windows (x64)
- Dart SDK ^3.5.0 or higher
How do I get an API key?
How do I get an API key?
- Visit platform.openai.com
- Sign up or log in
- Go to API Keys section
- Create a new API key
- Visit console.anthropic.com
- Sign up or log in
- Navigate to API Keys
- Generate a new key
- Visit makersuite.google.com
- Sign in with Google account
- Create an API key
- Go to GitHub Settings → Developer settings
- Create a Personal Access Token (PAT)
- Use the PAT as your API key
- Free model (LLM7.io)
- Ollama (self-hosted)
Where are my API keys stored?
Where are my API keys stored?
- File permissions set to 600 (owner read/write only) on Unix systems
- Keys stored in plain text locally (not transmitted anywhere except to the AI provider)
- Configuration file is in your home directory
Model Selection
Which AI model should I use?
Which AI model should I use?
- Start with
freemodel (no setup required) - Try
gw commit --model free
- GPT-4o (OpenAI) - Excellent quality, fast
- Claude 3.7 Sonnet (Anthropic) - Great reasoning
- Gemini 2.0 Flash (Google) - Fast and capable
- GPT-4o-mini - Good balance of quality and cost
- Claude 3 Haiku - Fast and affordable
- Gemini 1.5 Flash - Cost-effective
- Ollama with Llama 3 - Runs entirely on your machine
- No data sent to external servers
Can I use multiple models?
Can I use multiple models?
What model variants are available?
What model variants are available?
- gpt-4o, gpt-4o-mini, gpt-4-turbo, o1-preview, o3-mini
- claude-3-7-sonnet, claude-3-5-sonnet, claude-3-opus, claude-3-haiku
- gemini-2.0-flash, gemini-1.5-pro, gemini-1.5-flash
- grok-4, grok-3, grok-2, grok-2-mini
- Any model from ollama.com/search
How do I use Ollama (local models)?
How do I use Ollama (local models)?
- Download from ollama.com
- Install for your platform
- Free, unlimited usage
- Complete privacy (runs locally)
- No API key needed
- Works offline
Usage & Features
How do I generate a commit message?
How do I generate a commit message?
- [A] Apply - Use as-is
- [E] Edit - Modify before applying
- [R] Retry - Generate again
- [M] Try different model
- [D] Discard - Cancel
Can I edit the generated commit message?
Can I edit the generated commit message?
- Choose [E] Edit when reviewing the message
- Opens your Git editor (vim, nano, VS Code, etc.)
- After editing, the message returns to the confirmation menu
- You can apply, edit again, or discard
- Choose [M] to try a different AI model
- Generate a new message without committing
Does GitWhisper support multi-language commit messages?
Does GitWhisper support multi-language commit messages?
- English, Spanish, French, German
- Chinese (Simplified & Traditional), Japanese, Korean
- Arabic, Italian, Portuguese, Russian
- Dutch, Swedish, Norwegian, Danish, Finnish
- Greek, Turkish, Hindi, Shona, Zulu
Can I add ticket numbers or prefixes to commits?
Can I add ticket numbers or prefixes to commits?
--prefix flag:Single commit:- JIRA tickets:
JIRA-123 - GitHub issues:
#123 - Custom tags:
FEAT-456,BUG-789
How do I create git tags with commits?
How do I create git tags with commits?
Can GitWhisper analyze my code changes?
Can GitWhisper analyze my code changes?
analyze command:Analyze staged changes:- Detailed explanation of changes
- Code quality assessment
- Potential issues and concerns
- Improvement suggestions
- Security considerations
- Pre-commit code review
- Understanding complex changes
- Learning best practices
- Catching potential bugs
How do I handle large diffs?
How do I handle large diffs?
- Files >10MB are detected and warned
- Large diffs are processed file-by-file automatically
- Each file gets its own commit message
- Commit smaller, focused changes
- Break large features into multiple commits
- Use
.gitignorefor large binary files - Consider Git LFS for large assets
- When diff exceeds threshold, you get options:
- Use focused staging (file-by-file)
- Commit everything
- Cancel
Privacy & Security
Is my code sent to AI providers?
Is my code sent to AI providers?
- Your git diff is sent to the AI provider (OpenAI, Anthropic, etc.)
- Only the diff content is sent, not your entire codebase
- Data is transmitted over HTTPS
- Check each provider’s privacy policy
- Ollama runs entirely on your machine
- No data sent to external servers
- Complete privacy
- GitWhisper itself doesn’t store or log your code
- API keys are stored locally only
- We don’t collect any telemetry
Are my API keys secure?
Are my API keys secure?
- Keys stored in
~/.git_whisper.yaml - File permissions set to 600 (owner only)
- Stored in plain text locally
- Keys only sent to respective AI providers
- Transmitted over HTTPS
- Never sent to GitWhisper developers
- Don’t commit
.git_whisper.yamlto version control - Use environment variables for CI/CD
- Rotate keys periodically
- Use keys with minimal required permissions
Can I use GitWhisper in a commercial project?
Can I use GitWhisper in a commercial project?
- ✅ Commercial use allowed
- ✅ Modification allowed
- ✅ Distribution allowed
- ✅ Private use allowed
- OpenAI, Claude, Gemini have commercial tiers
- Free tiers may have restrictions
- Read each provider’s terms of service
- Use paid API plans
- Consider Ollama for cost control
- Review provider’s commercial licenses
Troubleshooting
GitWhisper command not found
GitWhisper command not found
How do I update GitWhisper?
How do I update GitWhisper?
Where can I get help?
Where can I get help?
- GitWhisper Docs - Full documentation
- Troubleshooting Guide
- GitHub Issues - Report bugs
- GitHub Discussions - Ask questions
- Buy me a coffee
- Star the repo on GitHub
- Share with others
Contributing
How can I contribute to GitWhisper?
How can I contribute to GitWhisper?
- 🐛 Fix bugs
- ✨ Add new features
- 📚 Improve documentation
- 🧪 Write tests
- 🌍 Add language support
- 🤖 Add AI model support
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests:
dart test - Submit a Pull Request
Can I add support for a new AI model?
Can I add support for a new AI model?
- Implement the
CommitGeneratorinterface - Add to
lib/src/models/
- Update
lib/src/models/model_variants.dart
- Add to
lib/src/models/commit_generator_factory.dart
- Update README.md
- Add usage examples
- Open a Pull Request
- Explain the new model