How to clone all projects of a group at once in GitLab?

后端 未结 15 1490
[愿得一人]
[愿得一人] 2020-12-23 02:02

In my GitLab repository, I have a group with 20 projects. I want to clone all projects at once. Is that possible?

15条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-23 02:48

    I created a tool for that: https://github.com/ezbz/gitlabber, you can use glob/regex expressions to select groups/subgroups you'd like to clone.

    Say your top-level group is called MyGroup and you want to clone all projects under it to ~/GitlabRoot you can use the following command:

        gitlabber -t  -u  -i '/MyGroup**' ~/GitlabRoot
    

提交回复
热议问题