GIT multi
The most stupid way to run a git command on multiple repositories.
Install
npm -g install git-multi
Setup
cd <main repository>
- create
.gitmulti
file - add to
.gitmulti
the path to any repository you want to manage with git-multi (1 per line)
Example
If you have the following repositories:
/workspace/main-app
/workspace/lib-1
/workspace/lib-2
You can configure git-multi on your main-app
:
echo "../lib-1" >> /workspace/main-app/.gitmulti
echo "../lib-2" >> /workspace/main-app/.gitmulti
And then run a git command to your repositories:
cd /workspace/main-app
git multi status