Skip to content

nschlimm/git-bulk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-bulk

git bulk adds covenient support for operations that you want to execute on multiple git repositories.

features

  • 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

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

installation

  1. get the git-bulk.sh
  2. create symlink like ln -s <path to script>/git-bulk.sh /usr/local/bin/git-bulk
  3. make the git-bulk.sh script executable with chmod -u+x <path to script>/git-bulk.sh

samples

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

fetchdemo

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

About

Running git operations on multiple repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages