Article version: GitHub.com
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, branches, and files.
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. They can also choose to include all the other branches in your repository. For more information, see "Creating a repository from a template."
- On GitHub, navigate to the main page of the repository.
- Under your repository name, click
- Select Template repository.