/easycommit

write commit message easily using local llm like `ollama`

Primary LanguageGoMIT LicenseMIT

easycommit

easycommit is a command-line interface (CLI) tool designed to streamline the process of writing Git commit messages. It uses an Ollama as backend.

🚧 I'm currently trying to find appropriate and accurate prompts. and I think Mistral is the best fit on my CLI now.

Installation

Binary

Manual

  • build it from code
git clone https://github.com/blackironj/easycommit.git
cd easycommit
go build .

Usage

  • You have to run the Ollama before running easycommit.

  • After installing Ollama. you should pull models what you want

    ollama pull mistral
  • Please see the Ollama page

simple cli tool for generating commit using Ollama

Usage:
  easycommit [flags]

Flags:
  -d, --debug               for debugging log
  -e, --endpoint string     ollama host url (default "http://127.0.0.1:11434")
  -h, --help                help for easycommit
  -m, --model string        llama model (default "mistral")
  -n, --num-predict int     num predict (default 200)
  -t, --temperature float   temperature (default 0.7)