[go: up one dir, main page]

0% found this document useful (0 votes)
19 views2 pages

GitHub Template Repository Guide

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

GitHub Template Repository Guide

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

GitHub Docs

Repositories / Create & manage repositories / Create a template repo

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.

Who can use this feature?

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


template.

In this article

About template repositories


Creating a template repository

About template repositories

You can create a template from an existing repository. Anyone with access to the
template repository can create a new repository based on the template with the
same directory structure, branches, and files..
:
Creating a template repository

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.
Branches created from a template have unrelated histories, so you cannot create pull
requests or merge between the branches. For more information, see "Creating a
repository from a template."

Note: Your template repository cannot include files stored using Git LFS.

Note: You can use a template repository as starter code for an assignment on
GitHub Classroom. For more information, see "Create an assignment from a
template repository."

1 On GitHub.com, navigate to the main page of the repository.

2 Under your repository name, click Settings. If you cannot see the "Settings"
tab, select the dropdown menu, then click Settings.

3 Select Template repository.

Legal
© 2024 GitHub, Inc. Terms Privacy Status Pricing Expert services Blog
:

You might also like