GitHunt
IN

InstantlyMoist/git-ai-commit

Updates all your repositories, and writes AI commit messages for them.

git-ai-commit

Updates all your repositories, and writes AI commit messages for them.

This script loops through every child directory, looks at the git diff and creates a commit message out of it. It will then automatically commit and push it to the latest branch.

Prerequisites

How to run

$ git clone https://github.com/InstantlyMoist/git-ai-commit
$ mv ./git-ai-commit/autocommit.sh ~/your-desired-directory
$ chmod +x ~/your-desired-directory/autocommit.sh
$ ~/your-desired-directory/autocommit.sh

# Change prompt (if desired)
export COMMIT_PROMPT="Generate a concise and informative commit message summarizing the following git diff:"

Tested with model

  • deepseek-r1:7b

Languages

Shell100.0%

Contributors

Created February 6, 2025
Updated February 7, 2025