Automate Git operations across multiple repositories
Features • Installation • Usage • Cron Setup • Configuration • License
AutoGit-o-Matic is a Bash script that automates Git operations across multiple repositories. It helps you:
- Pull or fetch updates from multiple repositories with a single command
- Scan directories for Git repositories automatically
- Log operations in both TXT and JSON formats
- Dry-run capability to simulate operations without making actual changes
- Configurable paths via an INI file
- Clone the repository:
- Make the script executable:
- Create your configuration file (you can copy and modify the example one):
Run the script with:
- --config FILE - Path to the configuration file (default: autogit-o-matic.ini)
- --dry-run - Simulate operations without actually executing Git commands
- --verbose, -v - Display more detailed information about operations
- --log-file FILE - Write logs to the specified file
- --help - Display help message and exit
You can also specify the full path to the script and configuration file:
For example:
Note: If you don't specify a configuration file with --config, the script will automatically look for autogit-o-matic.ini in the current directory. If it doesn't find it there, it will look for the config file in the same directory as the script itself.
To automate Git operations on a schedule, you can set up a cron job:
- Open your crontab file:
- Add a line to run the script at your desired schedule. For example, to run it every hour:
- For daily runs at 8:30 AM:
- To run it every 15 minutes:
Make sure to use absolute paths in your cron job to avoid any path-related issues.
The configuration file (autogit-o-matic.ini) uses an INI format:
You can specify either individual repositories or parent directories containing Git repositories.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Mateusz Okulanis
Email: [email protected]
.png)


