What It Does

A Python script that generates customized bash scripts for automated git commits with various configuration options.

Perfect for automating your development workflow with custom commit messages, pre/post commands, and multi-repository support.

Quick Start

python generate_commit_script.py

Run the generator and follow the interactive prompts to create your custom commit script.

Features

Flexible Change Tracking

Track all changes, staged changes only, or custom files/patterns

Message Customization

Add prefixes and suffixes to commit messages

Multi-Repository Support

Push to one or more repositories simultaneously

Pre/Post Commands

Run custom commands before and after git operations

Branch Management

Optionally switch to specific branches before pushing

Error Handling

Robust error checking and colored output

Usage Example

./auto_commit.sh "Add new feature" # Results in commit message: [feat] Add new feature

Requirements

• Python 3.6+
• Git
• Bash Shell (UNIX systems)