Gitlab move project to subgroup

This little post describes how to move "transfer" a GitLab project to another subgroup, when that project includes a container registry with lots of container images. GitLab does not support moving projects with container images.

Just started out using self hosted GitLab Anyway, after migrating about 20 local Git repositories to the new GitLab server, neatly arranged into 4 groups. I then noticed you can actually have sub-groups within the groups. This would help organisations even further, but I'm struggling to work out how to move the existing projects I've spent a day importing and configuring into a newly created sub-group. Sure I could just create a new project and copy the files over and commit them into the new project, and spend the time reconfiguring the project. Is there an easy way of moving the existing configured Project from the group into the new subgroup? The part of the url after GitLab server domain name, also known as 'slug' of the project is nothing but combination of namespace and the project name.

Gitlab move project to subgroup

You can organize GitLab groups into subgroups. You can use subgroups to:. In the hierarchy list, public groups with private subgroups have an expand option , which indicates the group has nested subgroups. The expand option is visible to all users, but the private group is displayed only to users who are direct or inherited members of the private subgroup. If you prefer to keep information about the presence of nested subgroups private, you should add private subgroups only to private parent groups. For more information, view the permissions table. When you add a member to a group, that member is also added to all subgroups of that group. Members can be filtered by inherited or direct membership. For example:. Inherited members of a subgroup are not notified by mentions.

Instructions on how to move a GitLab project with lots of container images in its registry.

However, at some point you might outgrow your personal project and want to move your project to a group namespace instead. With a group namespace, you can:. To begin, make sure you have a suitable group to move your project to. The group must allow the creation of projects, and you must have at least the Maintainer role for the group. If you have more than one personal project, you can repeat these steps for each project. Start enjoying the benefits of a group!

However, at some point you might outgrow your personal project and want to move your project to a group namespace instead. With a group namespace, you can:. To begin, make sure you have a suitable group to move your project to. The group must allow the creation of projects, and you must have at least the Maintainer role for the group. If you have more than one personal project, you can repeat these steps for each project.

Gitlab move project to subgroup

Connect and share knowledge within a single location that is structured and easy to search. GitLab's 9. However, before subgroups were possible, we've worked around that restriction by using a prefix, e. So now that the new subgroups are available, it would be great if one could move an existing group into another one as subgroup. However, I have not found an option to do that. We could create those sub groups by hand and then transfer all projects manually, but that seems more complicated than it should. For more current information, this feature has now been added to gitlab and you can transfer an existing group to become a subgroup of a different existing group.

Kunfu panda streaming

A single direct transfer migration runs 5 entities groups or projects per import at a time, independent of the number of workers available on the destination instance. Sign in to comment. Ask Question. I recommend to do those steps outside of regular business hours, since it will generate a bunch of emails "project was moved", "access was granted" , and you probably want to write an email yourself to your members to explain what they have to do "take the git remote set-url origin git and paste it into your shell on the right project". However, at some point you might outgrow your personal project and want to move your project to a group namespace instead. I'm wanting to do this too. You can view all groups migrated by you by direct transfer listed on the group import history page. Propose functionality by submitting a feature request. The projects are now shown in admin view , so the namespace transfer does not need a name-confirmation. Can one change a group to a subgroup in GitLab?

This article will discuss creating groups and moving projects in GitLab. GitLab groups allow us to categorize projects into directories for easier collaboration.

For problems setting up or using this feature depending on your GitLab subscription. Asked 6 years, 11 months ago. When you add a member to a group, that member is also added to all subgroups of that group. Join First Look to help shape new features. Sign in to comment. Sign up for free to join this conversation on GitHub. Propose functionality by submitting a feature request. Changing a group's parent can have unintended side effects. Details for partially completed and completed imports added in GitLab Also, since the desired group was created last, it should be the top one in the list.

2 thoughts on “Gitlab move project to subgroup

  1. It is a pity, that now I can not express - there is no free time. I will be released - I will necessarily express the opinion.

Leave a Reply

Your email address will not be published. Required fields are marked *