Skip to main content

템플릿 리포지토리 만들기

기존 리포지토리를 템플릿으로 만들어서 자신과 다른 사용자가 동일한 디렉터리 구조, 분기 및 파일을 사용하여 새 리포지토리를 생성하도록 할 수 있습니다.

이 기능을 사용할 수 있는 사용자

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

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

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: 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, 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. Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.
  3. Select Template repository.