Skip to content

chrsmutti/git-multi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-multi

Actions Status License: MIT

A rewrite of git-multi in Go.

Execute a single git command on multiple git repositories

Installation

Standalone

git-multi can be easily installed as an executable. Download the latest compiled binaries and put it anywhere in your executable path.

Source

Prerequisites for building from source are:

Clone this repository and run make install:

git clone https://github.com/chrsmutti/git-multi

cd git-multi
make install

Usage

Usage of git-multi:
  -d int
    	depth of folders to look into for git repositories (default 1)
  -no-color
    	do not print color characters
  -no-group
    	do not group same outputs
  -w string
    	set the working directory (default ".")

If you have repositories ~/Projects/Repo1, ~/Projects/Repo2, ...:

cd ~/Projects

# Check the status of all repositories:
git multi status

# Which is the same as:
git multi

# You can also pass flags to git commands:
git multi status --short

The basic usage is simple: git multi <git_multi_flags_here> <normal_git_commands_here> <normal_git_flags_here>

Group By Output

By default this version of git multi always groups by output, if that's not what you desire you can use the -no-group flag.

git multi -no-group

License

git-multi is licensed under the MIT License.