GitWhisper

AI-powered Git commit message generator that whispers the perfect commit message based on your staged changes

Terminal
$ git add .
$ gitwhisper commit
🔮 Analyzing your changes...
✨ Generated commit message:
feat: ✨ Add user authentication system
Apply this commit message? (y/n): y
🤖
🔮
🚀

Powerful Features

Everything you need to generate perfect commit messages with AI

Multiple AI Models

Support for OpenAI GPT, Claude, Gemini, Grok, Llama, DeepSeek, and Ollama models

Conventional Commits

Follows conventional commit format with emojis for better readability

Smart Analysis

Analyzes your staged changes to understand context and generate meaningful messages

Auto Push

Automatically push commits to remote repository with a single command

Ticket Prefixes

Add ticket numbers or task IDs as prefixes to your commit messages

Secure Key Storage

Securely save and manage API keys for different AI models

Easy Installation

Get started in seconds with multiple installation options

Install with Dart
dart pub global activate gitwhisper

Supported AI Models

Choose from a wide range of cutting-edge AI models

OpenAI

GPT-4, GPT-4o, GPT-3.5, O1

✓ gpt-4
✓ gpt-4o
✓ o1-preview

Claude

Opus, Sonnet, Haiku

✓ claude-3-opus
✓ claude-3.5-sonnet
✓ claude-3-haiku

Gemini

Pro, Flash, Ultra

✓ gemini-2.0-flash
✓ gemini-1.5-pro
✓ gemini-1.5-flash

Grok

Grok-1, Grok-2, Grok-3

✓ grok-1
✓ grok-2
✓ grok-3

Llama

3.1, 3.2, 3.3 variants

✓ llama-3.1-405b
✓ llama-3.2-3b
✓ llama-3.3-70b

DeepSeek

Chat, Reasoner

✓ deepseek-chat
✓ deepseek-reasoner

GitHub

Free models (rate limited)

✓ gpt-4o
✓ Llama-3.3-70B
✓ DeepSeek-R1

Ollama

Self-hosted models

✓ All Ollama models
✓ Custom base URL
✓ Local hosting

Simple Usage

Get started with GitWhisper in just a few commands

Basic Commands

1

Stage your changes

git add .
2

Generate commit message

gitwhisper commit --model openai
3

Review and commit

GitWhisper will generate the perfect commit message and apply it automatically!

Advanced Features

Set Default Model

gw set-defaults --model claude --model-variant claude-3-opus

Add Ticket Prefix

gw commit --prefix "JIRA-123"

Auto Push

gw commit --auto-push

Analyze Changes

gw analyze

Amazing Contributors

Thank you to all the wonderful people who have contributed to GitWhisper

iamngoni
Creator

@iamngoni

Project Creator & Maintainer

147 commits
Takudzwa Nyanhanga
Contributor

Takudzwa Nyanhanga

@abcdOfficialzw

Contributor

Your Name Here

Future Contributor

Be the next amazing contributor to GitWhisper!

Contribute
2
Contributors
147
Commits
Possibilities
❤️
Community Love

Want to Contribute?

GitWhisper is open source and we'd love your help! Whether it's fixing bugs, adding features, improving documentation, or suggesting new AI models, every contribution makes a difference.