If you put the git-all command provided in this gist as an executable in your PATH
then:
For a structure like:
/just/a/project/group/path
- project-1/
- project-2/
- project-3/
Where project-{1,2,3}
are all git directories we can execute the following:
$ cd /just/a/project/group/path
$ git all status -s
./project-1
?? some-new-folder/
./project-2
M src/file.yml
./project-3
The empty output after project-3 is obviously no status change reported by git status -s
.
Of course all commands work even though some of them may not be appropriate for bulk execution. But you can simultaneously checkout
branches, pull
, log --oneline
and more.
git-some
behave the same except it takes specific project to apply the commands to. Example:
$ cd /just/a/project/group/path
$ git some project-1 project-2 -- status -s
./project-1
?? some-new-folder/
./project-2
M src/file.yml