LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-xargs

Make the same change across many GitHub repositories

TLDR

Run a command in repos matching a query and open PRs
$ git-xargs --branch-name [update] --github-org [org] --commit-message "[msg]" -- [make] [format]
copy
Target repos from a file
$ git-xargs --repos [repos.txt] --branch-name [chore] --commit-message "[msg]" -- [./script.sh]
copy
Dry run
$ git-xargs --dry-run --github-org [org] -- [true]
copy

SYNOPSIS

git-xargs [*options*] -- *command* [*args*...]

DESCRIPTION

git-xargs (Gruntwork) clones selected GitHub repositories, runs an arbitrary command in each, and can commit, push, and open pull requests with the results. Built for platform teams applying mechanical refactors or policy files across an organization.

PARAMETERS

--github-org *org* / --repos *file* / repo selectors

Choose target repositories.
--branch-name *name*
Branch for commits/PRs.
--commit-message *msg*
Commit message when changes exist.
--pr-title / --pr-body
Pull request fields.
--dry-run
Print actions without modifying remotes.
-- *command*
Command executed inside each clone.
Requires GitHub authentication (token with repo scope).

INSTALL

brew install git-xargs
copy

CAVEATS

Powerful and potentially destructive—test with --dry-run and a single repo first. Respect branch protection and CODEOWNERS. Disk and API rate limits matter at org scale.

SEE ALSO

multi-gitter(1), gh(1), git(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid