| Crates.io | ocommit |
| lib.rs | ocommit |
| version | 0.2.0 |
| created_at | 2025-09-27 17:52:24.015607+00 |
| updated_at | 2025-10-08 22:46:49.435275+00 |
| description | quickly create a git commit message with ollama and commit, locally |
| homepage | |
| repository | https://github.com/bogzbonny/ocommit |
| max_upload_size | |
| id | 1857514 |
| size | 55,164 |
ocommit quickly create a git commit message with ollama and commit,
locally.
ocommitgit status and generates a commit message based off
the diffocommit stages the changes and commits them.The tool also supports dry‑runing (-d / --dry) which doesn't perform actual
staging or commits
Install rust.
cargo install ocommit
Make sure you have ollama installed and pull whatever model you want to use. The default is qwen2.5-coder:3b.
ollama pull qwen2.5-coder:3b
The program looks for a YAML configuration file at $HOME/.config/ocommit.yaml
ollama_model: qwen2.5-coder:3b # required – name of the model to use. default: qwen2.5-coder:3b
ignore_files: # names of files/folders to ignore (in addition
- Cargo.lock # to what's already in the .gitignore)
ocommit # run
ocommit --dry # show the generated commit message without committing
ocommit -d # short alias for `--dry`
yoo!