Here are the steps to set up a new assignment using GitHub Classroom

Creating the Repository on GitHub

  1. Log in to GitHub and create a new repository.
  2. Under the settings of the repository set it to be a “Template repository” by checking the box.
  3. Return to the Code tab and copy the URL of the repository to the clipboard.

Cloning the Repository to Visual Studio Code

  1. On your computer, open Visual Studio Code and bring up the Command Palette.
  2. In the Command Palette type “git clone” and when it appears, hit enter and then paste in the URL to your repository and then hit enter.
  3. In the lower right of Visual Studio Code you will be prompted to open the repository. Click it to open it up.
  4. Now you have an empty repository to place files into.
  5. Once all of your files are in the repository, Save, State, Commit and Push your work to GitHub.
  6. Now you can create the assignment within GitHub Classroom.

Setting up the GitHub Classroom Assignment

  1. Go to
  2. Go into the Classroom you want to create the assignment for.
  3. Click on the New Assignment button.
  4. Fill in all the fields with your specific choices and then click on the Continue button.
  5. Select “Add a template repository to give students starter code” and located the Template repository you created and then click on the Continue button.
  6. On the next page click on the Create assignment button.
  7. Copy the URL for the assignment to Canvas.
%d bloggers like this: