This script allows you to generate a commit message for your staged changes using an LLM.
Install ollama
Clone the repository
git clone https://github.com/mmv08/git-commit-ollama.git
Modelfile
in this repositoryollama create gitcommit -f ./Modelfile
cp gcm-llm.sh $HOME/.local/bin/gcm-llm
# Stage your changes
git add .
# Generate a commit message
gcm-llm