Configuration ⚙️
You can configure Commit-G in three ways:
1. Environment Variables
export GEMINI_API_KEY="your_key"
export GEMINI_MODEL="gemini-3.8-flash"
2. .commitgrc.json File
{
"apiKey": "your_key",
"model": "gemini-3.8-flash",
"maxDiffLength": 10000,
"emoji": true,
"prefix": "JIRA-123"
}
3. Command-Line Flags
commitg --apiKey your_key --model gemini-pro --emoji --prefix JIRA-123