28 lines
2.4 KiB
Markdown
28 lines
2.4 KiB
Markdown
---
|
|
title: Create an assignment from a template repository
|
|
intro: 'You can create an assignment from a template repository to provide starter code, documentation, and other resources to your students.'
|
|
permissions: 'Organization owners who are admins for a classroom can create an assignment from a template repository that is public or owned by the organization. {% data reusables.classroom.classroom-admins-link %}'
|
|
versions:
|
|
fpt: '*'
|
|
redirect_from:
|
|
- /education/manage-coursework-with-github-classroom/using-template-repos-for-assignments
|
|
- /education/manage-coursework-with-github-classroom/create-an-assignment-from-a-template-repository
|
|
shortTitle: Template repository
|
|
---
|
|
|
|
You can use a template repository on {% data variables.product.github %} as starter code for an assignment on {% data variables.product.prodname_classroom %}. Your template repository can contain boilerplate code, documentation, and other resources for your students. For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/creating-a-template-repository).
|
|
|
|
To use the template repository for your assignment, the template repository must be owned by your organization, or the visibility of the template repository must be public.
|
|
|
|
When you create your assignment, {% data variables.product.prodname_classroom %} creates a new repository from the template in your organization with the visibility you select (for more information on creating repositories from templates, see [AUTOTITLE](/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template)).
|
|
|
|
Student assignment repositories will be forks of this created repository. You can choose whether all branches are included in student assignment repositories, or just the default branch.
|
|
|
|
You can reuse an existing assignment, even if it uses a template repository, in any other classroom that you have admin access to, including classrooms in a different organization. For more information, see [AUTOTITLE](/education/manage-coursework-with-github-classroom/teach-with-github-classroom/reuse-an-assignment).
|
|
|
|
## Further reading
|
|
|
|
* [AUTOTITLE](/education/manage-coursework-with-github-classroom/teach-with-github-classroom/create-an-individual-assignment)
|
|
* [AUTOTITLE](/education/manage-coursework-with-github-classroom/teach-with-github-classroom/create-a-group-assignment)
|
|
* [AUTOTITLE](/education/manage-coursework-with-github-classroom/teach-with-github-classroom/using-github-classroom-with-github-cli)
|