Link Search Menu Expand Document (external link)

Creating an Assignment

Once your GitHub Classroom has been created, you can start creating assignments. GitHub classroom supports both individual and group assignments as well as making the assignments viewable to other students or private between the student and teacher.

Assignments will be based on an existing GitHub repository, so you must create or find a repo to use for an assignment. In this example we will use the GitHub Classroom’s github-starter-course which is available on the sandiegostate GitHub Organization. Note that this repository is private, so you must first request access to GitHub Classroom.

We highly recommend using the github-starter-course assignment as it ensures students have a foundation for using Git and GitHub.

This documentation assumes that you have already created a GitHub Classroom.

Follow these steps to create your first assignment:

  1. If not already signed in, sign in to https://classroom.github.com/
  2. Click one of your available classrooms
  3. If this is your first assignment for this classroom you will see the below:
    • Click ‘Create an assignment’
  4. If this is not the first assignment for the classroom, you may instead see the below:
    • Click ‘New assignment’
  5. Fill out the form and then click ‘Contine’
    • In this example we have chosen an individual assignment, no deadline and private repos so that each student can only see their own work
  6. From the following form, click the ‘Select a repository’ dropdown and paste in ‘github-starter-course’
  7. Select the ‘sandiegostate/github-starter-course’ option
  8. Optionally, click the ‘Select an editor’ dropdown and choose ‘Visual Studio Code’
  9. Click ‘Continue’
  10. We will not be using autograding on this example assignment, but feel free to explore the options. When done, click ‘Create assignment’
  11. You should see your assignment:
      1. If instead you run into this page, just click the ‘Try going back to classroom dashboard’ link
      2. Click on your classroom
      3. Click on your assignment
  12. Click ‘Got it’ on the pop-up
  13. Click the copy button to copy the assignment invitation URL
  14. You can now share this link with your students however you like (email, Canvas, etc.)
  15. Preview the assignment acceptance page by pasting the link in a new tab in your browser
    • Note: Students will be prompted to sign into or to create a GitHub account:
  16. Once students accept the assignment invite you will see them populate in the list:
    • Note that you can see the student’s progress at a high level with the status pill, in this case it is a red ‘Not submitted’ status and the commit count is 0
  17. Once a student submits their assignment, you can click the ‘Repository’ link next to their name to check their work:
    • Note that the status pill has changed to a green ‘Submitted’ status and that the commit count is now greater than 0