read
You can use GitHub CLI to clone all easily.
To install, run brew install gh
.
Then login with gh auth login
.
Copy and run the following, replacing “samwize” with the username/organization.
gh repo list samwize --limit 1000 | while read -r repo _; do
gh repo clone "$repo" -- --depth 1 --branch master
done
The command above added the flags to clone the master branch (omit to use the default branch) with a depth of 1 (omit to clone the whole history).