mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
19 lines
615 B
Plaintext
19 lines
615 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# git for-each-repo
|
|
|
|
> Run a Git command on a list of repositories.
|
|
> Note: This command is experimental and may change.
|
|
> More information: <https://git-scm.com/docs/git-for-each-repo>.
|
|
|
|
- Run maintenance on each of a list of repositories stored in the `maintenance.repo` user configuration variable:
|
|
|
|
`git for-each-repo --config maintenance.repo {{maintenance run}}`
|
|
|
|
- Run `git pull` on each repository listed in a global configuration variable:
|
|
|
|
`git for-each-repo --config {{global_configuration_variable}} {{pull}}`
|