Let AI write your git commit messages! ICommit analyzes your changes and generates meaningful commits right in your terminal.
# One-line install
curl -fsSL https://raw.githubusercontent.com/shawon1fb/ICommit/main/install.sh | bash
- Stage your files:
git add .
- Let AI generate a commit message:
ICommit
- Choose what to do:
- ✅ Accept the message
- 🔄 Generate a new one
- ✍️ Edit it yourself
- 🤖 AI-powered commit messages
- 🔄 Interactive message editor
- 🌳 Branch management
- 🚀 One-click commit & push
- 📝 Conventional commit format
- macOS 14.0+
- Ollama running locally
Configure Ollama by setting these environment variables:
# Ollama Connection Settings
export OLLAMA_HOST=your_server_ip # Default: localhost
export OLLAMA_PORT=11434 # Default: 11434
export OLLAMA_SCHEME=http # Default: http
export OLLAMA_MODEL=your_model # Default: llama2
# Local setup (default)
export OLLAMA_HOST=localhost
export OLLAMA_SCHEME=http
# Remote server with HTTPS
export OLLAMA_HOST=ai.example.com
export OLLAMA_SCHEME=https
-
Nothing happens?
- Check if Ollama is running
- Make sure you staged files (
git add
) - Verify your connection settings (HOST/PORT/SCHEME)
-
Connection failed?
- Check if OLLAMA_SCHEME matches your server (http/https)
- Ensure OLLAMA_HOST is correctly set
- Verify the port is accessible
Need more help? Open an issue
- Works on all Macs (M1/M2/Intel)