Creating GitHub Template Repository
Tags: tutorial, github, repository
Published: 2023-01-23 11:14:27

## Table of Content:
* [**STEP 1 (Create a New Repository)**](#chapter-1)
* [**STEP 2 (Create a Template Repository)**](#chapter-2)
* [**STEP 3 (Creating Repository from a Template)**](#chapter-3)

You can create a new repository on your GitHub account or any organization where you have sufficient permission.

<mark>If you want to create a template from the existing repository go through</mark> [**STEP 2**](#chapter-2).

## STEP 1 (Create a New Repository) <a name="chapter-1"></a>
1. In the upper right corner, use the + drop-down menu and select **New Repository**.
<p align="center">
<img src="https://miro.medium.com/max/352/1*bD_JH2UR3zLtgKEUX5ZCpA.webp" alt="1.1.1 — create a new repository" border="0"><figcaption>1.1.1 — create a new repository</figcaption>
</p>
Or click the tab **Repositories** → **New**.
<p align="center">
<img src="https://miro.medium.com/max/720/1*bK0PsX0r397c_GChLNOFVA.webp" alt="1.1.2 — create a new repository" border="0"><figcaption>1.1.2 — create a new repository</figcaption>
2. In the **Owner** drop-down, select the account on which you wish to create the repository.
<p align="center">
<img src="https://miro.medium.com/max/720/1*hrOPtap7aYljEiqdVw7MWg.webp" alt="1.2 — choose repository owner" border="0"><figcaption>1.2 — choose repository owner</figcaption>
3. Type a Name for your repository, and fill in an optional Description box.
<p align="center">
<img src="https://miro.medium.com/max/720/1*AY8yCpOHrF0wBAn_pD3RyA.webp" alt="1.3 - fill repository name and description" border="0"><figcaption>1.3 - fill repository name and description</figcaption>
4. Choose repository visibility.
    - **Public** repositories = are accessible to everyone on the internet.
    - **Private** repositories = are only accessible to you, and people who you share access with, and for organization repositories, specific organization members.
<p align="center">
<img src="https://miro.medium.com/max/720/1*0KE3p0NKkRt675k_EO-1ZQ.webp" alt="1.4 - repository visibility" border="0"><figcaption>1.4 - repository visibility</figcaption>
5. Check the Add a **README** file box.
 - <mark>You can edit the **README** file later</mark>.
<p align="center">
<img src="https://miro.medium.com/max/720/1*-dUGq-FJLh2vlvMaDIqnvA.webp" alt="1.5 - add a readme file." border="0"><figcaption>1.5 - add a readme file.</figcaption>
6. Click **Create Repository**.
<p align="center">
<img src="https://miro.medium.com/max/640/1*SAx_pwPzb4o40f2G2vF0lw.webp" alt="1.6 - create a repository button" border="0"><figcaption>1.6 - create a repository button</figcaption>
7. Your new repository is ready.
<p align="center">
<img src="https://miro.medium.com/max/720/1*QwryjSTAjmJQsziqtHCJmA.webp" alt="1.7 - repository ready to use" border="0"><figcaption>1.7 - repository ready to use</figcaption>

## STEP 2 (Create a Template Repository) <a name="chapter-2"></a>
1. Under your repository name, click ⚙️ **Setting**.
<p align="center">
<img src="https://miro.medium.com/max/720/1*c_sbkoRaNGpB8GiPY-dfnQ.webp" alt="2.1 - setting repository" border="0"><figcaption>2.1 - setting repository</figcaption>
2. Fill in the checkbox **Template Repository**.
<p align="center">
<img src="https://miro.medium.com/max/720/1*aLMPT2UEaJxsHIhyvB4QOQ.webp" alt="2.2 - setting activate template repository" border="0"><figcaption>2.2 - setting activate template repository</figcaption>
3. Go back and refresh your browser.
4. If successful, **Use this template** button just added. 
<p align="center">
<img src="https://miro.medium.com/max/720/1*197DiSfi6H7jtNwHoVxigA.webp" alt="2.4 - before and after setup of a template repository" border="0"><figcaption>2.4 - before and after setup of a template repository</figcaption>
5. Now, your template is ready for editing before you use it.

## STEP 3 (Creating Repository from a Template) <a name"chapter-3"></a>
1. On the GitHub page, navigate to the main page of the repository.
<mark>You can use templates from your repository, organization repository, or another repository</mark>.
Click **Use this template** and select **Create a new repository**.
<p align="center">
<img src="https://miro.medium.com/max/720/1*mS2sqXQDZm165wc_tukeSA.webp" alt="3.1.1 - create a new repository from the template" border="0"><figcaption>3.1.1 - create a new repository from the template</figcaption>
Another step to **Create New Repository** is In the upper right corner, use the **+** drop-down menu and select **New Repository**.
<p align="center">
<img src="https://miro.medium.com/max/352/1*bD_JH2UR3zLtgKEUX5ZCpA.webp" alt="3.1.2 - create a new repository from the template" border="0"><figcaption>3.1.2 - create a new repository from the template</figcaption>
Or click the tab **Repositories** → **New**.
<p align="center">
<img src="https://miro.medium.com/max/720/1*bK0PsX0r397c_GChLNOFVA.webp" alt="3.1.3 - create a new repository from the template" border="0"><figcaption>3.1.3 - create a new repository from the template</figcaption>
2. To create a repository with your template of the directory structure and files of an existing repository, use the **Choose a template** drop-down and select a template repository.
<p align="center">
<img src="https://miro.medium.com/max/640/1*dyHdSKIPzL0KAKqjHG-tmw.webp" alt="3.2 - create a new repository from the template" border="0"><figcaption>3.2 - create a new repository from the template</figcaption>
<mark>After this step, the next step is the same as **STEP 1 (Create New Repository)** starting from **no.2 - 7**</mark>.
3. In the **Owner** drop-down,  select the account on which you wish to create the repository.
<p align="center">
<img src="https://miro.medium.com/max/720/1*hrOPtap7aYljEiqdVw7MWg.webp" alt="3.3 - repository owner" border="0"><figcaption>3.3 - repository owner</figcaption>
4. Type a Name for your repository, and fill in an optional Description box.
<p align="center">
<img src="https://miro.medium.com/max/720/1*AY8yCpOHrF0wBAn_pD3RyA.webp" alt="3.4 - fill repository name and description" border="0"><figcaption>3.4 - fill repository name and description</figcaption>
5. Choose repository visibility.
    - **Public** repositories = accessible to everyone on the internet
    - **Private** repositories = are only accessible to you, and people who you share access with, and for organization repositories, specific organization members.
<p align="center">
<img src="https://miro.medium.com/max/720/1*0KE3p0NKkRt675k_EO-1ZQ.webp" alt="3.5 - repository visibility" border="0"><figcaption>3.5 - repository visibility</figcaption>
6. Check the Add a **README** file box.
 - <mark>You can edit the **README** file later</mark>.
<p align="center">
<img src="https://miro.medium.com/max/720/1*-dUGq-FJLh2vlvMaDIqnvA.webp" alt="3.6 - add a readme file" border="0"><figcaption>3.6 - add a readme file</figcaption>
7. Click **Create Repository**.
<p align="center">
<img src="https://miro.medium.com/max/640/1*SAx_pwPzb4o40f2G2vF0lw.webp" alt="3.7 - create a repository button" border="0"><figcaption>3.7 - create a repository button</figcaption>
8. Your newly generate template repository is ready.
<p align="center">
<img src="https://miro.medium.com/max/640/1*mTAcB9exDINklJZIQzFDsg.webp" alt="3.8 - newly generate template repository" border="0"><figcaption>3.8 - newly generate template repository</figcaption>
Finish.