Skip to content

Instantly share code, notes, and snippets.

View vnayakg's full-sized avatar
:electron:

vinayak vnayakg

:electron:
  • Pune, India
View GitHub Profile
@vnayakg
vnayakg / git_commit_message_ollama.sh
Created June 16, 2025 10:04
git commit message with ollama
git_commit_ollama() {
local model=${1:-codellama}
local staged_diff
staged_diff=$(git diff --staged)
if [[ -z "$staged_diff" ]]; then
echo "No staged changes to commit." >&2
return 1
fi