This topic describes the repository template feature. You can use the repository template feature to quickly create a code repository by using a system template or custom template. This allows you to reuse the project structure, code, and branch model of an existing code repository. Organizations can customize a template repository that complies with their engineering standards for development teams to use.
System templates
The system provides built-in templates that are suitable for Spring, NodeJs Express, Android, iOS, Go Micro, Ruby on Rails, .NET Core, and React. You can choose a built-in template based on your business requirements.
Log on to the Alibaba Cloud DevOps Codeup page, and click Create Repository in the upper-right corner.
In the Create Repository dialog box, click the Template tab.
Set the Repository Name, Repository Path, Visibility Level, and Description parameters, and click OK.
Confirm that the new repository is initialized by using the code of the template repository.
Custom templates
Alibaba Cloud DevOps allows organizations to customize a template repository that complies with their engineering standards. This makes it convenient for development teams to reuse repositories.
Log on to the Alibaba Cloud DevOps Codeup page and go to the code repository of the template that you want to customize.
NoteIf you are an administrator of a repository, you can configure the repository as a template repository. After that, users can use the template repository if they have read permissions on the repository.
A template repository must be smaller than 100 MB in size. You cannot create a repository based on an oversized template repository.
Choose , and find the Set as Template Repository option.

Turn on Set as Template Repository.

If you have read permissions on a template repository, when you create a code repository, select a template on the Custom Template subtab to create the code repository.
NoteFor custom template repositories, you can preview the repository content.
If you use a template repository, only the content of the default branch is imported by default. If you select to import all the branches of the template repository, the system automatically imports the content of all branches.