Skip to main content

GitHub AE는 현재 제한된 릴리스 상태입니다.

템플릿에서 리포지토리 만들기

기존 리포지토리와 동일한 디렉터리 구조 및 파일을 가진 새 리포지토리를 생성할 수 있습니다.

About repository templates

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

Tip: You can also create a repository from a template using the GitHub CLI. For more information, see "gh repo create" in the GitHub CLI documentation.

You can choose to include the directory structure and files from only the default branch of the template repository or to include all branches. Branches created from a template have unrelated histories, which means you cannot create pull requests or merge between the branches.

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

  • A new fork includes the entire commit history of the parent repository, while a repository created from a template starts with a single commit.
  • Commits to a fork don't appear in your contributions graph, while commits to a repository created from a template do appear in your contribution graph.
  • A fork can be a temporary way to contribute code to an existing project, while creating a repository from a template starts a new project quickly.

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

Creating a repository from a template

  1. On your enterprise, navigate to the main page of the repository.

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

  3. Use the Owner dropdown menu to select the account you want to own the repository. Screenshot of the owner menu for a new GitHub repository. The menu shows two options, octocat and github.

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

    Screenshot of a the first step in creating a GitHub repository. The "Repository name" field contains the text "hello-world" and is outlined in dark orange.

  5. Choose a repository visibility. For more information, see "About repositories."

  6. Optionally, to include the directory structure and files from all branches in the template, and not just the default branch, select Include all branches.

  7. Click Create repository from template.