1GIT-FOR-EACH-REPO(1)              Git Manual              GIT-FOR-EACH-REPO(1)
2
3
4

NAME

6       git-for-each-repo - Run a Git command on a list of repositories
7

SYNOPSIS

9       git for-each-repo --config=<config> [--] <arguments>
10

DESCRIPTION

12       Run a Git command on a list of repositories. The arguments after the
13       known options or -- indicator are used as the arguments for the Git
14       subprocess.
15
16       THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE.
17
18       For example, we could run maintenance on each of a list of repositories
19       stored in a maintenance.repo config variable using
20
21           git for-each-repo --config=maintenance.repo maintenance run
22
23       This will run git -C <repo> maintenance run for each value <repo> in
24       the multi-valued config variable maintenance.repo.
25

OPTIONS

27       --config=<config>
28           Use the given config variable as a multi-valued list storing
29           absolute path names. Iterate on that list of paths to run the given
30           arguments.
31
32           These config values are loaded from system, global, and local Git
33           config, as available. If git for-each-repo is run in a directory
34           that is not a Git repository, then only the system and global
35           config is used.
36

SUBPROCESS BEHAVIOR

38       If any git -C <repo> <arguments> subprocess returns a non-zero exit
39       code, then the git for-each-repo process returns that exit code without
40       running more subprocesses.
41
42       Each git -C <repo> <arguments> subprocess inherits the standard file
43       descriptors stdin, stdout, and stderr.
44

GIT

46       Part of the git(1) suite
47
48
49
50Git 2.43.0                        11/20/2023              GIT-FOR-EACH-REPO(1)
Impressum