Clone repository
Good afternoon. I have a project "A" (folder with folders) in git lab. Each folder contains separate git modules (A1, A2, ... A50). If I want to clone a separate module, then there is no problem, I just make a git - clone and enter the A2 url for an example and so on for each. Is there any way to clone everything at once, or is it possible to clone only one part at a time? Using the poke method, I tried to give a path to the project, but by itself nothing happened.
Please sign in to leave a comment.
Hi, is your top-level directory a repository (contains .git at the top level)?
no, just folder
If you want to clone multiple git repositories at once, I can only suggest using scripting. It's discussed on SO: https://stackoverflow.com/questions/18900294/clone-multiple-git-repositories-in-one-local-directory
Here's one example: https://gist.github.com/benizar/03c5ede574ac7b847413857f74bb04b3
thanks