This is a auto commit tool for git. It uses local language model to generate commit message.
I came up with the idea when I see the article below. https://zenn.dev/takaha4k/articles/7cd3ac44ee2c7b
ollama run phi3
Now, this only supports phi3 model.
git clone https://github.com/k1000dai/llm_auto_commit.git
pip install .
if you have already staged files, you can use the command below.
gitautocommit
and then, you can see the commit message generated by local language model. example:
Implement installation instructions for llm-auto-commit package in README.md
Do you want to commit? [y/n]: y
if enter y , it will be committed
- -d,--debug: show debug message
- -h,--help: show help message
- Using MLX for Apple Silicon
MIT License
Copyright (c) 2024 k1000dai