DEV Community

Justin Poehnelt
Justin Poehnelt

Posted on

Automating Git Commit Messages with an LLM

To speed up my workflow, I am starting to use this little gem in replace of my normal git commit ... "feat: WHAT DO I SAY??".

git diff origin \
  | llm -s 'write a short git commit message' \
  | git commit -e --file -
Enter fullscreen mode Exit fullscreen mode

This pops up a the message in your configured editor to review and apply!

TODO (🫵 you): Add your own variation and aliases.

https://github.com/simonw/llm-gemini

Top comments (0)