As an administrator, you can create templates from repository dump files or zip archives and use them to initialize new repositories.
These formats are supported for templates:
- A repository dump file
- Zipped archive of a repository dump file
- Zipped archive of the contents of a repository: this should contain the entire repository (including the db and hooks folders), not just a checkout of some portion of the repository
-
Select Repositories in the main navigation bar.
-
Select Manage Templates and click Create in the Repository Template List page.
-
On the Create New Repository Template page, provide a name for the template.
Template names can contain up to 120 characters and include alphanumerics and spaces.
-
Browse to the zip or dump file you want to use for your template.
-
Click Create.
When you add a new repository, this template will be available for you to initialize the repository.