DEV Community

loading...

Clone github repos in parallel

João Vitor
・1 min read

It is possible to clone a list of github repositories in parallel.

Given that the file is called your_organization.txt.

cd ~/github-orgs/your-organization
cat your_organization.txt | parallel  -j 25 'clone-missing.sh {}; echo job {#} completed {};'
Enter fullscreen mode Exit fullscreen mode

You can generate a list of repositories of a github user or a github organization with these helper scripts:

Discussion (0)