git bulk
adds covenient support for operations that you want to execute on multiple git repositories.
- simply register workspaces that contain multiple git repos in their directory structure
- run any git command on the repositories of the registered workspaces in one command to
git bulk
- use the "guarded mode" to check on each execution
usage: git bulk [-g] ([-a]|[-w <ws-name>]) <git command>
git bulk --addworkspace <ws-name> <ws-root-directory>
git bulk --removeworkspace <ws-name>
git bulk --addcurrent <ws-name>
git bulk --purge
git bulk --listall
- get the
git-bulk.sh
- create symlink like
ln -s <path to script>/git-bulk.sh /usr/local/bin/git-bulk
- make the git-bulk.sh script executable with
chmod -u+x <path to script>/git-bulk.sh
Register a workspace so that git bulk
knows about it:
$ git bulk --addworkspace personal ~/workspaces/personal
Register the current directory as a workspace to git bulk
$ git bulk --addcurrent personal
List all registered workspaces:
$ git bulk --listall
bulkworkspaces.personal /Users/niklasschlimm/workspaces/personal
Run a git command on the repositories of the current workspace:
$ git bulk fetch
Run a git command on one specific workspace and its repositories:
$ git bulk -w personal fetch
Run a git command on all workspaces and its repositories:
$ git bulk -a status -s
Run a git command but ask user for confirmation on every execution (guarded mode):
$ git bulk -g fetch
Remove a registered workspace:
$ git bulk --removeworkspace personal
Remove all registered workspaces:
$ git bulk --purge