Creating the Repository on GitHub
- Log in to GitHub and create a new repository.
- Under the settings of the repository set it to be a “Template repository” by checking the box.
- Return to the Code tab and copy the URL of the repository to the clipboard.
Cloning the Repository to Visual Studio Code
- On your computer, open Visual Studio Code and bring up the Command Palette.
- 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.
- In the lower right of Visual Studio Code you will be prompted to open the repository. Click it to open it up.
- Now you have an empty repository to place files into.
- Once all of your files are in the repository, Save, State, Commit and Push your work to GitHub.
- Now you can create the assignment within GitHub Classroom.
Setting up the GitHub Classroom Assignment
- Go to https://classroom.github.com
- Go into the Classroom you want to create the assignment for.
- Click on the New Assignment button.
- Fill in all the fields with your specific choices and then click on the Continue button.
- Select “Add a template repository to give students starter code” and located the Template repository you created and then click on the Continue button.
- On the next page click on the Create assignment button.
- Copy the URL for the assignment to Canvas.