Skip to content

antho686/multi-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

multi-git

multi-git is a Bash script that helps you run Git commands across multiple Git repositories within a directory tree. It automatically finds all Git repositories under the current directory and executes the specified Git command in each one.

Features

  • Discover all Git repositories under the current directory.
  • Run any Git command in all found repositories.
  • Highlight repositories with uncommitted changes.
  • Reports failures for any repository where the command did not succeed.

Usage

multi-git <git-args...>
  • Replace <git-args...> with any Git command and its arguments (e.g., status, pull, fetch, etc.).
  • Special command: multi-git ls-status Lists all repositories with uncommitted changes and their current branch.

Example:

multi-git status
multi-git pull
multi-git ls-status

Installation

  1. Copy the script to /usr/bin:
sudo cp multi-git /usr/bin/multi-git
  1. Make it executable:
sudo chmod +x /usr/bin/multi-git

Now you can run multi-git from anywhere.

License

This project is licensed under the GNU General Public License v2.0 only. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages