Article version:

Creating a repository from a template

You can generate a new repository with the same directory structure and files as an existing repository.

Anyone with read permissions to a template repository can create a repository from that template. For more information, see "Creating a template repository."

Creating a repository from a template is similar to forking a repository, but there are important differences:

For more information about forks, see "About forks."

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

  2. Above the file list, click Use this template.

    Use this template button

  3. Use the Owner drop-down menu, and select the account you want to own the repository.

    Owner drop-down menu

  4. Type a name for your repository, and an optional description.

    Create repository field

  5. Choose to make the repository either public or private. Public repositories are visible to the public, while private repositories are only accessible to you, and people you share them with. For more information, see "Setting repository visibility."

    Radio buttons to select private or public status

  6. Optionally, if the personal account or organization in which you're creating uses any GitHub Apps from GitHub Marketplace, select any apps you'd like to use in the repository.

    List of your account's GitHub Apps from GitHub Marketplace and option to grant access

  7. Click Create repository from template.

Ask a human

Can't find what you're looking for?

Contact us