My project would like to create GitLab projects with multiple source code repositories shown below. One CICD pipeline per feature branch per project. Please let me know if it is supported:
ProjectA - Repo1, Repo2, Repo3
ProjectB - Repo4, Repo5, Repo6
Probably the only way I see is create the branches in the project as Repo1, Repo2, Repo3 etc.
2 Likes
In GitLab, you can create multiple repositories within a single project by following these steps:
- Go to your project’s main page in GitLab.
- Click on the “New repository” button, which is located in the top right corner of the page.
- Enter a name for your new repository and select the type of repository you want to create (e.g., “Empty repository”).
- Click on the “Create repository” button.
- Repeat steps 2-4 for each additional repository you want to create within the project.
Alternatively, you can use GitLab’s API to create a repository programmatically.
You can also create multiple repositories using GitLab’s import feature. This allows you to import code and its history from an existing repository into a new repository in your GitLab project.
@mark_wood I don’t see any possibility to create multiple repositories within a project. I think maybe you are referring to creating multiple projects within a group? I just checked this by selecting an existing project, and there is no button to choose new repository. The new project option only appears on the main dashboard, or within a group.
Unless you a referring to an older version of Gitlab? Perhaps you can show a screenshot? Because I don’t see this possibility for multiple repositories in a single project.
3 Likes