No description
Find a file
2026-05-06 16:02:00 +12:00
commit-msg Update commit-msg 2026-05-06 16:02:00 +12:00
issue.txt docs: Add 1 and update 1 files 2026-05-05 23:55:07 +12:00
publish.sh . 2026-05-05 23:29:34 +12:00
README.md Update README.md 2026-05-05 23:33:59 +12:00

commit-msg - Generate git commit messages with a local LLM in Docker

Runs Ollama + a small CPU-only model (default: qwen2.5:0.5b, ~350MB) in a Docker container. No GPU required.

Usage: git diff --cached | commit-msg # Message for staged changes git diff | commit-msg # Message for unstaged changes commit-msg # Auto-detects git diff git diff | commit-msg -m gemma2:2b # Use a different model

Options: -m, --model NAME Ollama model (default: qwen2.5:0.5b) -n, --dry-run Show input without calling the model -p, --pull Force re-download the model -c, --cleanup Stop container after use -k, --keep-alive Keep container running (default)

Common CPU-friendly models: qwen2.5:0.5b ~350MB - Fast, good quality qwen2.5:1.5b ~1GB - Better quality gemma2:2b ~1.6GB - Good quality phi3:3.8b ~2GB - Higher quality, slower

Notes: - First run pulls the model from Ollama (~350MB for default) - Model cached in Docker volume (ollama-commit-msg) for reuse - Container stays running between runs for speed - Stop: docker stop commit-msg-ollama