This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-08-20. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Article version: Enterprise Server 2.18

Creating a template repository

You can make an existing repository a template, so you and others can generate new repositories with the same directory structure and files.

Did this doc help you?

Anyone with admin permissions to a repository can make the repository a template.

To create a template repository, you must create a repository, then make the repository a template. For more information about creating a repository, see "Creating a new repository."

After you make your repository a template, anyone with access to the repository can generate a new repository with the same directory structure and files as your default branch. For more information, see "Creating a repository from a template."

  1. On GitHub Enterprise, navigate to the main page of the repository.
  2. Under your repository name, click Settings.
    Repository settings button
  3. Select Template repository.
    Checkbox to make a repository a template

Did this doc help you?

Ask a human

Can't find what you're looking for?

Contact us