HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git for-each-repo — Run a Git command on a list of repositories. Note: This command is experimental and may change. More

Submitted by: @import:tldr-pages··
0
Viewed 0 times
repositoriescommandrungit for-each-repoclilistgit

Problem

How to use the git for-each-repo command: 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>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: common/git for-each-repo

Revisions (0)

No revisions yet.