shlogg · Early preview
Justin Poehnelt @jpoehnelt

Automate Git Commits With LLM-Gemini

I'm using `llm-gemini` to auto-generate git commit messages with `git diff origin | llm -s 'write a short git commit message' | git commit -e --file -`.

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 -

    
    

    
    




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