๐Ÿค” What?

You join a team with a multiple GitLab repositories spread across multiple groups and subgroups. How to clone all of them?

๐Ÿš€ How?

To do this you need to have GitLab cli (aka glab), then

glab repo clone -group <your-group> --include-subgroups --archived=false --paginate --preserve-namespace
glab repo clone -g <you-group> -a=false --paginate -p # Short
  • --include-subgroups: Clone projects in subgroups as well (true by default).
  • --paginate: Fetch all projects pages before starting the Clone.
  • --preserve-namespace: Clone the projects into directories following the same group/project hierarchy in GitLab.