mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-05 06:15:35 +02:00
git-bulk: add page (#8946)
This commit is contained in:
parent
9279a98fd0
commit
d0081edd1f
1 changed files with 25 additions and 0 deletions
25
pages/common/git-bulk.md
Normal file
25
pages/common/git-bulk.md
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# git bulk
|
||||||
|
|
||||||
|
> Execute operations on multiple Git repositories.
|
||||||
|
> Part of `git-extras`.
|
||||||
|
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-bulk>.
|
||||||
|
|
||||||
|
- Register a workspace for bulk operations:
|
||||||
|
|
||||||
|
`git bulk --addworkspace {{workspace_name}} {{/absolute/path/to/repository}}`
|
||||||
|
|
||||||
|
- Clone a repository inside a specific directory then register the repository as a workspace:
|
||||||
|
|
||||||
|
`git bulk --addworkspace {{workspace_name}} {{/absolute/path/to/parent_directory}} --from {{remote_repository_location}}`
|
||||||
|
|
||||||
|
- Clone repositories from a newline-separated list of remote locations then register them as workspaces:
|
||||||
|
|
||||||
|
`git bulk --addworkspace {{workspace-name}} {{absolute/path/to/root/directory}} --from {{absolute/path/to/file}}`
|
||||||
|
|
||||||
|
- List all registered workspaces:
|
||||||
|
|
||||||
|
`git bulk --listall`
|
||||||
|
|
||||||
|
- Run a Git command on the repositories of the current workspace:
|
||||||
|
|
||||||
|
`git bulk {{command}} {{command_arguments}}`
|
Loading…
Add table
Reference in a new issue