Skip to content

Commit 5a40dd8

Browse files
authored
git-for-each-repo: add page (#5490)
1 parent 5607caa commit 5a40dd8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pages/common/git-for-each-repo.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# git for-each-repo
2+
3+
> Run a Git command on a list of repositories.
4+
> Note: this command is experimental and may change.
5+
> More information: <https://git-scm.com/docs/git-for-each-repo>.
6+
7+
- Run maintenance on each of a list of repositories stored in the `maintenance.repo` user configuration variable:
8+
9+
`git for-each-repo --config={{maintenance.repo}} {{maintenance run}}`
10+
11+
- Run `git pull` on each repository listed in a global configuration variable:
12+
13+
`git for-each-repo --config={{global_configuration_variable}} {{pull}}`

0 commit comments

Comments
 (0)