Clone multiple git repositories in one local directory?

vir2al picture vir2al · Sep 19, 2013 · Viewed 48.4k times · Source

Is it possible to git clone multiple git repositories with one command (for example: git clone "1.git,2.git,3.git.." in one local directory?

Answer

Fábio Correia picture Fábio Correia · May 14, 2018

This is how almost solved for myself:

git clone https://myrepo.com/folder.git && \
git clone https://myrepo.com/folder2.git && \
git clone https://myrepo.com/folder3.git

This is way easier to build using a code editor like Sublime or VSCode.

The only downside for me: If you did not store your credentials, you're gonna have to type it over and over.