Auto commit with Ollama

Automatically generate commit messages and automatically create a commit for each file

Overview

Too lazy to write commit messages, let AI do it, but AI providers like OpenAI, Cursor AI, etc., are too expensive and have limited token input.

A Python script will read the git diff and use the Ollama model gemma3:4b to automatically generate commit messages and automatically create a commit for each file.

Execute

python3 auto_commit.py

Github

https://github.com/ttpho/git_diff_auto_commit

Tags: ai git
Share: X (Twitter) Facebook LinkedIn