Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GIT Fetching Multiple Repository's

Tags:

git

windows

cmd

I have a user github.com/userName that has 50+ Repositories that I would like to clone into a single dir on my Windows PC. What would be the best way to do this?

like image 888
Jess SM Avatar asked Jul 21 '26 17:07

Jess SM


1 Answers

One way would be to create one more repo in which you declare your 50+ repos as submodules.

That way, you would be able to initialize/clone your 50 repos with a

git clone --recursive your_main_parent_repo

(See "How to git clone including submodules?")

Don't forget to commit and push your main_repo when you have committed and push any of your submodules though.

like image 176
VonC Avatar answered Jul 24 '26 09:07

VonC