7. Transfer Project
Introduction
This section is optional and will walk you through how to transfer the project out of Learn Labs and into your personal namespace. We will also walk through how to transfer a whole group if you want more than a specific project.
Transferring a Project
- If you only want a single project to reference for later, start here. If instead you want the whole group we have been working with to reference later, skip to step 2.
- This step is completely optional, if you do not wish to transfer just click finish. Keep in mind that if you do not have an existing ultimate license some of the lab functionality will go away when you transfer your project.
- Projects cannot be transferred when there are images in the container registry, clean them up by going to Packages and Registries --> Container registry
- Delete all the available images by clicking on the trashcan at the back of the line, and confirm the deletion until all images are deleted
- While still in your project use the left hand navigation menu to click through Settings -> General
- From there scroll to the bottom and click Expand on the Advanced section.
- We then want to locate the Transfer project section and click the Select a new namespace dropdown. From there search for your name and select it. Your name will most likely be under Users in bold. NOTE: This will be your actual name and not your GitLab ID.
- A confirmation message will then pop up where you just need to re-enter the name of your project then click Confirm.
- Your project will then be immediately moved to your personal namespace for you to reference in the future.
Transferring a Group
- If you completed step 1 and don't need to reference any of the other projects in the future, skip this step and end the workshop.
- First copy the URL of your current group. It should be similar to the example below:
https://gitlab.com/gitlab-learn-labs/environments/session-{your session id}/{your group id}
- Next locate where you want to transfer the project to. More often than not it will be under your personal namespace or a different group you have already created. Go ahead and click New group or New subgroup then select Import group/import an existing group.
- From here we will want to input the URL of our existing group we copied earlier then click Connect instance. At that point GitLab will begin to move over your group for you so that you can reference it even when the workshop infra is torn down.