1GIT-BULK(1) Git Extras GIT-BULK(1)
2
3
4
6 git-bulk - Run git commands on multiple repositories
7
9 usage: usage: git bulk [-g] ([-a]|[-w <ws-name>]) <git command> git
10 bulk --addworkspace <ws-name> <ws-root-directory> git bulk --remove‐
11 workspace <ws-name> git bulk --addcurrent <ws-name> git bulk --purge
12 git bulk --listall
13
15 git bulk adds convenient support for operations that you want to exe‐
16 cute on multiple git repositories.
17
18 · simply register workspaces that contain multiple git repos in their
19 directory structure
20
21 · run any git command on the repositories of the registered
22 workspaces in one command to git bulk
23
24 · use the "guarded mode" to check on each execution
25
26
27
29 -a
30
31 Run a git command on all workspaces and their repositories.
32
33 -g
34
35 Ask the user for confirmation on every execution.
36
37 -w <ws-name>
38
39 Run the git command on the specified workspace. The workspace must be
40 registered.
41
42 <git command>
43
44 Any git Command you wish to execute on the repositories.
45
46 --addworkspace <ws-name> <ws-root-directory>
47
48 Register a workspace for bulk operations. All repositories in the dire‐
49 tories below <ws-root-directory> get registered under this workspace
50 with the name <ws-name>. <ws-root-directory> must be absolute path.
51
52 --removeworkspace <ws-name>
53
54 Remove the workspace with the logical name <ws-name>.
55
56 --addcurrent <ws-name>
57
58 Adds the current directory as workspace to git bulk operations. The
59 workspace is referenced with its logical name <ws-name>.
60
61 git bulk --purge
62
63 Removes all defined repository locations.
64
65 git bulk --listall
66
67 List all registered repositories.
68
70 Register a workspace so that git bulk knows about it:
71
72 $ git bulk --addworkspace personal ~/workspaces/personal
73
74 Register the current directory as a workspace to git bulk:
75
76 $ git bulk --addcurrent personal
77
78 List all registered workspaces:
79
80 $ git bulk --listall
81
82 Run a git command on the repositories of the current workspace:
83
84 $ git bulk fetch
85
86 Run a git command on the specified workspace and its repositories:
87
88 $ git bulk -w personal fetch
89
90 Run a git command but ask the user for confirmation on every execution (guarded mode):
91
92 $ git bulk -g fetch
93
94 Remove a registered workspace:
95
96 $ git bulk --removeworkspace personal
97
98 Remove all registered workspaces:
99
100 $ git bulk --purge
101
103 Written by Niklas Schlimm <ns103@hotmail.de>
104
106 <https://github.com/nschlimm/git-bulk>
107
109 <https://github.com/tj/git-extras>
110
111
112
113 October 2017 GIT-BULK(1)