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
Options:
[A] Apply commit message
[E] Edit commit message
[R] Retry with same model
[M] Try different model
[D] Discard and exit
What would you like to do? (A/e/r/m/d): A
🤖
🔮
🚀

Editor Integrations

Use GitWhisper directly in your favorite code editor

Visual Studio Code

by Panashe Mushinyi

Generate commit messages directly within VS Code's Git interface. Seamlessly integrated with your workflow.

Features:

  • • Generate commit messages from staged changes
  • • Works with VS Code's built-in Git tools
  • • Easy one-click installation
Install Extension

JetBrains IDEs

by Panashe Mushinyi

Available for all JetBrains IDEs including IntelliJ IDEA, WebStorm, PhpStorm, PyCharm, and more.

Features:

  • • Integrated with JetBrains VCS tools
  • • Support for all JetBrains IDEs
  • • Native IDE experience
Install Plugin

Prefer the command line? Install the CLI tool below

Powerful Features

Everything you need to generate perfect commit messages with AI

Multiple AI Models

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

Conventional Commits

Follows conventional commit format with emojis for better readability

Interactive Confirmation

Review, edit, retry with different models, or discard generated messages before committing

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

Multi-Language Support

Generate commit messages and analysis in 20+ languages including English, Spanish, French, German, and more

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.