A rewrite of git-multi in Go.
Execute a single git command on multiple git repositories
git-multi
can be easily installed as an executable. Download the latest
compiled binaries and put it
anywhere in your executable path.
Prerequisites for building from source are:
make
- Go
Clone this repository and run make install:
git clone https://github.com/chrsmutti/git-multi
cd git-multi
make install
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>
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
git-multi
is licensed under the MIT License.