{
    "content": [
        {
            "type": "text",
            "text": "# GIT-FOR-EACH-REPO (man)\n\n## NAME\n\ngit-for-each-repo - Run a Git command on a list of repositories\n\n## SYNOPSIS\n\ngit for-each-repo --config=<config> [--] <arguments>\n\n## DESCRIPTION\n\nRun a Git command on a list of repositories. The arguments after the known options or --\nindicator are used as the arguments for the Git subprocess.\n\n## TLDR\n\n> Run a Git command on a list of repositories.\n\n- Run maintenance on each of a list of repositories stored in the `maintenance.repo` user configuration variable:\n  `git for-each-repo --config maintenance.repo {{maintenance run}}`\n- Run `git pull` on each repository listed in a global configuration variable:\n  `git for-each-repo --config {{global_configuration_variable}} {{pull}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS**\n- **SUBPROCESS BEHAVIOR**\n- **GIT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "GIT-FOR-EACH-REPO",
        "section": "",
        "mode": "man",
        "summary": "git-for-each-repo - Run a Git command on a list of repositories",
        "synopsis": "git for-each-repo --config=<config> [--] <arguments>",
        "tldr_summary": "Run a Git command on a list of repositories.",
        "tldr_examples": [
            {
                "description": "Run maintenance on each of a list of repositories stored in the `maintenance.repo` user configuration variable",
                "command": "git for-each-repo --config maintenance.repo {{maintenance run}}"
            },
            {
                "description": "Run `git pull` on each repository listed in a global configuration variable",
                "command": "git for-each-repo --config {{global_configuration_variable}} {{pull}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "SUBPROCESS BEHAVIOR",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "GIT",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "git-for-each-repo - Run a Git command on a list of repositories\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "git for-each-repo --config=<config> [--] <arguments>\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Run a Git command on a list of repositories. The arguments after the known options or --\nindicator are used as the arguments for the Git subprocess.\n\nTHIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE.\n\nFor example, we could run maintenance on each of a list of repositories stored in a\nmaintenance.repo config variable using\n\ngit for-each-repo --config=maintenance.repo maintenance run\n\n\nThis will run git -C <repo> maintenance run for each value <repo> in the multi-valued config\nvariable maintenance.repo.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "--config=<config>\nUse the given config variable as a multi-valued list storing absolute path names. Iterate\non that list of paths to run the given arguments.\n\nThese config values are loaded from system, global, and local Git config, as available.\nIf git for-each-repo is run in a directory that is not a Git repository, then only the\nsystem and global config is used.\n",
                "subsections": []
            },
            "SUBPROCESS BEHAVIOR": {
                "content": "If any git -C <repo> <arguments> subprocess returns a non-zero exit code, then the git\nfor-each-repo process returns that exit code without running more subprocesses.\n\nEach git -C <repo> <arguments> subprocess inherits the standard file descriptors stdin,\nstdout, and stderr.\n",
                "subsections": []
            },
            "GIT": {
                "content": "Part of the git(1) suite\n\n\n\nGit 2.34.1                                   02/26/2026                         GIT-FOR-EACH-REPO(1)",
                "subsections": []
            }
        }
    }
}