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/repo
repo init -u ssh://git@github.com/or-tools/repo.git -b main
repo init -u https://github.com/or-tools/repo.git
note: To change/set your user.name and user.email simply use the option --config-name
repo start --all main
repo sync -j8
Now all is done ...
You can easily run a command on each repo e.g.:
repo forall -c 'echo "$REPO_PROJECT:"; git checkout main'