@muhammedsamal/commit

1.0.1 • Public • Published

Commit - AI-Powered Git Commit Message Generator

Generate conventional commit messages using AI. Super fast with quick mode.

Installation

bun install -g commit

Quick Start

Set your Groq API key:

echo 'export GROQ_API_KEY="your_api_key_here"' >> ~/.zshrc
source ~/.zshrc

Then just run:

commit -q    # Analyzes all changes and auto-commits

Usage

commit -q    # Quick mode (recommended)
commit       # Interactive mode
commit -a    # Auto-stage all changes
commit -i    # Multiple suggestions

Environment Variables

export GROQ_API_KEY="your_key"                    # For quick mode
export OPENAI_API_KEY="your_key"                  # For OpenAI
export ANTHROPIC_API_KEY="your_key"               # For Anthropic  
export GOOGLE_GENERATIVE_AI_API_KEY="your_key"    # For Google

Quick Mode

  • Uses Groq's Llama 4 Scout model
  • Analyzes all changes (staged + unstaged)
  • Auto-commits without confirmation
  • Requires only GROQ_API_KEY

Perfect for rapid development workflows.

Package Sidebar

Install

npm i @muhammedsamal/commit

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

25.7 kB

Total Files

6

Last publish

Collaborators

  • muhammedsamal