Skip to the content.

Configuration ⚙️

You can configure Commit-G in three ways:

1. Environment Variables

export GEMINI_API_KEY="your_key"
export COMMITG_MODEL="gemini-1.5-flash"

2. .commitgrc.json File

{
  "apiKey": "your_key",
  "model": "gemini-1.5-flash",
  "maxDiffLength": 10000,
  "emoji": true,
  "prefix": "JIRA-123"
}

3. Command-Line Flags

commitg --apiKey your_key --model gemini-pro --emoji --prefix JIRA-123

👉 Usage Instructions