Skip to content

Instantly share code, notes, and snippets.

View juanchaves's full-sized avatar

Juan Chaves juanchaves

View GitHub Profile
@fritzprix
fritzprix / llm-commit.sh
Last active August 2, 2025 08:03
🤖 Generate git commit messages automatically using local LLM (Ollama). Simple bash script that analyzes your git diff and creates meaningful commit messages. No API keys, no cloud - runs locally with Ollama.
#!/bin/bash
# Get the git diff and save it to a temporary file
git diff --cached > /tmp/git_diff.txt
# If there's no diff, exit
if [ ! -s /tmp/git_diff.txt ]; then
echo "No staged changes to commit"
exit 1
fi