Gitlab目前暂时只支持git over https,同步私有repo时可以使用作为URL;如果使用CAS注册了账户但不知道密码,可以自行至设置中更改;如有其他问题,请发邮件至service@cra.moe寻求协助。

Custom group-level project templates (PREMIUM)

Introduced in GitLab 11.6.

Group owners can set a subgroup to be the source of project templates that are selectable when a new project is created in the group. These templates can be selected when you go to New project > Create from template in the group and select the Group tab.

Every project in the subgroup, but not nested subgroups, can be selected by members of the group when a new project is created.

  • Public projects can be selected by any signed-in user as a template for a new project, if all enabled project features except for GitLab Pages and Security & Compliance are set to Everyone With Access. The same applies to internal projects.
  • Private projects can be selected only by users who are members of the projects.

Repository and database information that is copied over to each new project is identical to the data exported with the GitLab Project Import/Export.

To set custom project templates at the instance level, see Custom instance-level project templates.

Set up group-level project templates

To set up custom project templates in a group, add the subgroup that contains the project templates to the group settings:

  1. In the group, create a subgroup.
  2. Add projects to the new subgroup as your templates.
  3. In the left menu for the group, go to Settings > General.
  4. Expand Custom project templates and select the subgroup.

If all enabled project features (except for GitLab Pages) are set to Everyone With Access, then every project template in the subgroup is available to every member of the group.

Any projects added to the subgroup later can be selected the next time a group member creates a new project.

Example structure

Here's a sample group/project structure for project templates, for a hypothetical Acme Co:

# GitLab instance and group
    # Subgroups
    # Subgroup for handling project templates
            # Project templates

        # Other projects