Set up Git uploading
You can allow your students to hand in directly from their Git (GitHub or GitLab) repository to CodeGrade.
It can be convenient to allow students to hand in to CodeGrade directly via Git. Learning to work with Git is often a learning goal for students and combining this with CodeGrade's features makes it very well suited for education.
To set up Git submissions for your CodeGrade assignment, follow the steps below:
Setting up Git uploading in the CodeGrade Assignment Manager
- 1.Go to the Assignment Management page for the assignment you want to enable git submissions for by clicking on the Settings button.
- 2.Under the General tab, locate the Allowed upload types section.
- 3.Select the GitHub/GitLab checkbox to enable submissions via Git.
- 4.Optionally, deselect the File uploader checkbox to only allow students to submit via Git and not have an additional file uploader present on the hand in page.
You have now enabled Git submissions for your CodeGrade assignment. Students will be shown instructions on configuring their Git repository to work together with CodeGrade, by setting up a deploy key and webhook. After setting this up correctly, students' work will be uploaded to CodeGrade with every
git pushthey execute. Encourage students to set this up before starting to work on the assignment, so a nice history of submissions is created in CodeGrade.