tldr/pages/common/git-bulk.md

38 lines
1.1 KiB
Markdown
Raw Normal View History

2022-10-16 04:19:56 +01:00
# 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>.
2022-10-19 06:20:21 +01:00
- Register the current directory as a workspace:
`git bulk --addcurrent {{workspace_name}}`
2022-10-16 04:19:56 +01:00
- 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}} {{/path/to/root/directory}} --from {{/path/to/file}}`
2022-10-16 04:19:56 +01:00
- List all registered workspaces:
`git bulk --listall`
- Run a Git command on the repositories of the current workspace:
`git bulk {{command}} {{command_arguments}}`
2022-10-19 06:20:21 +01:00
- Remove a specific workspace:
`git bulk --removeworkspace {{workspace_name}}`
- Remove all workspaces:
`git bulk --purge`