Man page - git-bulk(1)
Packages contains this manual
- git-unlock(1)
- git-browse(1)
- git-standup(1)
- git-alias(1)
- git-setup(1)
- git-abort(1)
- git-rename-tag(1)
- git-lock(1)
- git-scp(1)
- git-repl(1)
- git-fresh-branch(1)
- git-touch(1)
- git-delta(1)
- git-force-clone(1)
- git-gh-pages(1)
- git-release(1)
- git-info(1)
- git-delete-squashed-branches(1)
- git-archive-file(1)
- git-get(1)
- git-rebase-patch(1)
- git-delete-tag(1)
- git-clear-soft(1)
- git-count(1)
- git-root(1)
- git-pull-request(1)
- git-local-commits(1)
- git-pr(1)
- git-ignore(1)
- git-cp(1)
- git-show-merged-branches(1)
- git-feature(1)
- git-sed(1)
- git-effort(1)
- git-utimes(1)
- git-show-tree(1)
- git-reauthor(1)
- git-authors(1)
- git-commits-since(1)
- git-changelog(1)
- git-delete-branch(1)
- git-fork(1)
- git-squash(1)
- git-magic(1)
- git-summary(1)
- git-rename-remote(1)
- git-ignore-io(1)
- git-show-unmerged-branches(1)
- git-locked(1)
- git-missing(1)
- git-undo(1)
- git-clear(1)
- git-obliterate(1)
- git-reset-file(1)
- git-guilt(1)
- git-bulk(1)
- git-merge-repo(1)
- git-rename-file(1)
- git-contrib(1)
- git-stamp(1)
- git-extras(1)
- git-delete-merged-branches(1)
- git-browse-ci(1)
- git-merge-into(1)
- git-graft(1)
- git-rename-branch(1)
- git-create-branch(1)
- git-sync(1)
- git-delete-submodule(1)
- git-coauthor(1)
- git-psykorebase(1)
- git-brv(1)
- git-paste(1)
- git-mr(1)
apt-get install git-extras
Manual
GIT-BULK
NAMESYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
AUTHOR
REPORTING BUGS
SEE ALSO
NAME
git-bulk - Run git commands on multiple repositories
SYNOPSIS
git-bulk
[-g] ([-a]|[-w
git-bulk
--addworkspace
git-bulk
--removeworkspace <ws-name>
git-bulk
--addcurrent <ws-name>
git-bulk
--purge
git-bulk
--listall
DESCRIPTION
git bulk adds convenient 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 |
OPTIONS
-a
Run a git command on all workspaces and their repositories.
-g
Ask the user for confirmation on every execution.
-w <ws-name>
Run the git command on the specified workspace. The workspace must be registered.
<git command>
Any git Command you wish to execute on the repositories.
--addworkspace
Register a workspace for bulk operations. All repositories in the directories below <ws-root-directory> get registered under this workspace with the name <ws-name>. <ws-root-directory> must be absolute path.
With option β--fromβ the URL to a single repository or a file containing multiple URLs can be added and they will be cloned directly into the workspace. Suitable for the initial setup of a multi-repo project.
--removeworkspace <ws-name>
Remove the workspace with the logical name <ws-name>.
--addcurrent <ws-name>
Adds the current directory as workspace to git bulk operations. The workspace is referenced with its logical name <ws-name>.
git bulk --purge
Removes all defined repository locations.
git bulk --listall
List all registered repositories.
EXAMPLES
Register a workspace so that git bulk knows about it:
$ git bulk --addworkspace personal Λ/workspaces/personal
Use option --from in order to directly clone a repository or multiple repositories
$ git bulk
--addworkspace personal Λ/workspaces/personal --from
https://github.com/tj/git-extras.git
$ git bulk --addworkspace personal
Λ/workspaces/personal --from
Λ/repositories.txt
repositories.txt
----------------------------------
https://host-of-git/repo-1.git
https://host-of-git/repo-2.git
https://host-of-git/repo-3.git
Register the current directory as a workspace to git bulk:
$ git bulk --addcurrent personal
List all registered workspaces:
$ git bulk --listall
Run a git command on the repositories of the current workspace:
$ git bulk fetch
Run a git command on the specified workspace and its repositories:
$ git bulk -w personal fetch
Run a git command but ask the 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
AUTHOR
Written by Niklas Schlimm < ns103@hotmail.de >
REPORTING BUGS
<https://github.com/nschlimm/git-bulk>
SEE ALSO
< https://github.com/tj/git-extras >