Can I create multiple source code repositories in a GitLab project?

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.


In GitLab, you can create multiple repositories within a single project by following these steps:

  1. Go to your project’s main page in GitLab.
  2. Click on the “New repository” button, which is located in the top right corner of the page.
  3. Enter a name for your new repository and select the type of repository you want to create (e.g., “Empty repository”).
  4. Click on the “Create repository” button.
  5. 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. :+1:

@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.

1 Like