Grab all repository using Google repo
First you need the repo binary.
mkdir -p ~/.local/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.local/bin/repo
chmod a+x ~/.local/bin/reporepo init -u ssh://git@github.com/or-tools/repo.git -b mainrepo init -u https://github.com/or-tools/repo.gitnote: To change/set your user.name and user.email simply use the option --config-name
repo start --all mainrepo sync -j8Now all is done ...
You can easily run a command on each repo e.g.:
repo forall -c 'echo "$REPO_PROJECT:"; git checkout main'