Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

42
git-bulk Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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 the current directory as a workspace:
`git bulk --addcurrent {{workspace_name}}`
- 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}}`
- List all registered workspaces:
`git bulk --listall`
- Run a Git command on the repositories of the current workspace:
`git bulk {{command}} {{command_arguments}}`
- Remove a specific workspace:
`git bulk --removeworkspace {{workspace_name}}`
- Remove all workspaces:
`git bulk --purge`