doc/administration/project_templates.md
{{< details >}}
{{< /details >}}
Project templates populate new projects with files and configuration. On your instance, you can configure custom project templates from a group you manage, and control whether built-in project templates are available to users.
To speed up the creation of projects on your instance, configure a group that contains template projects. Users can then create new projects based on your templates that include the common tooling and configuration you specify.
To learn more about what data is copied from template projects, see what is copied from the templates.
Before you make template projects available to your instance, select a group to manage the templates. To prevent any unexpected changes to templates, create a new group for this purpose, rather than reusing an existing group. If you reuse an existing group created for a different purpose, users with the Maintainer role might edit the template projects without understanding the side effects.
Prerequisites:
To select the group to manage the project templates for your instance:
After you configure the group as a source for project templates, new projects added to this group become available as templates.
After you create a group to manage the template projects, configure the visibility and feature availability of each template project.
Prerequisites:
Repository and database information that are copied over to each new project are identical to the data exported with GitLab project import and export. This includes the full Git commit history from the template project. For more information, see migrate GitLab data by using file exports.
To create a template without commit history, initialize your template project with a single commit that contains all the files you want to include.
{{< history >}}
use_built_in_project_templates_enabled. Disabled by default.{{< /history >}}
[!flag] The availability of this feature is controlled by a feature flag. For more information, see the history. This feature is available for testing, but not ready for production use.
Built-in project templates populate new projects with starter files. By default, these templates are available to all users. As an administrator, you can turn off this setting for the instance, and optionally enforce it so group Owners cannot override it. Group Owners can also control this setting for their groups.
The setting uses cascading inheritance:
Prerequisites:
To control built-in project templates for the instance: