Show HN: LLM plugin to automatically generate Git commit messages

https://github.com/GNtousakis/llm-commit
by gntousakis • 1 year ago
8 4 1 year ago

This is a small plugin for Simon Willison’s llm utility. It uses staged Git changes and generates a commit message using a LLM.

You can do things like:

git add . # Stage your changes

llm commit # Automatically generate a commit message from the staged diff

llm commit --model gpt-4 --max-tokens 150 --temperature 0.8 --yes # Customize model settings (e.g., GPT-4) or skip confirmation

Related Stories

Loading related stories...

Source preview

github.com