git-commit-ollama

Stars
2

git-commit-ollama

This script allows you to generate a commit message for your staged changes using an LLM.

Installation

  1. Install ollama

  2. Clone the repository

git clone https://github.com/mmv08/git-commit-ollama.git
  1. Create a custom model using the Modelfile in this repository
ollama create gitcommit -f ./Modelfile
  1. Add the script to your local executable path
cp gcm-llm.sh $HOME/.local/bin/gcm-llm

Usage

# Stage your changes
git add .

# Generate a commit message
gcm-llm