Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A bash utility to automatically commit changes across multiple Git repositories, ideal for script and configuration management.

License

Notifications You must be signed in to change notification settings

thiswillbeyourgithub/git_scripts_keeper

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Scripts Keeper

A simple bash utility that automatically commits changes in multiple git repositories.

Description

Git Script Keeper is a bash script that helps you manage multiple git repositories by automatically detecting changes and committing them. It reads a list of repository paths from a file and processes each repository, committing any changes with an auto-generated commit message.

Inspired by etckeeper, Git Script Keeper was created to track changes in scripts and configuration folders that aren't covered by system configuration management tools.

Features

  • Automatically detects changes in multiple git repositories
  • Skips repositories with no changes
  • Generates commit messages that include the list of modified files
  • Handles errors gracefully (non-existent directories, non-git repositories)
  • Supports comments and empty lines in the repository list file
  • Made to be run periodically via systemd or cron.

Usage

./git_scripts_keeper.sh <path_to_repo_list_file>

Example repository list file (repos.txt):

# My repositories
/home/user/projects/project1
/home/user/projects/project2
# This one is commented out
# /home/user/projects/inactive-project
/home/user/projects/project3

Options

  • -h, --help: Display help message and exit

Requirements

  • Bash shell
  • Git

Installation

  1. Download this script via git clone
  2. Make it executable: chmod +x git_scripts_keeper.sh
  3. Create a repository list file with one repository path per line into repos.txt.
  4. Launch via ./git_scripts_keeper.sh repos.txt
  5. Optional: make it periodic via the systemd unit in the folder systemd_units or via cron.

About

A bash utility to automatically commit changes across multiple Git repositories, ideal for script and configuration management.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.