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/personalRegister the current directory as a workspace to git bulk
$ git bulk --addcurrent personalList all registered workspaces:
$ git bulk --listall
bulkworkspaces.personal /Users/niklasschlimm/workspaces/personalRun a git command on the repositories of the current workspace:
$ git bulk fetchRun a git command on one specific workspace and its repositories:
$ git bulk -w personal fetchRun a git command on all workspaces and its repositories:
$ git bulk -a status -sRun a git command but ask user for confirmation on every execution (guarded mode):
$ git bulk -g fetchRemove a registered workspace:
$ git bulk --removeworkspace personalRemove all registered workspaces:
$ git bulk --purge