GitHub Classroom - UNGPhysics/welcome GitHub Wiki
GitHub Classroom can be used to easily create private repositories for each student in a class where they can then submit assignments electronically. Below is are instructions for setting this up and giving your TA access to the students' private repositories. Please remember the policy that students should not be made into organization members.
- Create assignments via classroom.github.com (remember to select the option to make the repositories private)
- Send the invitation link to your students
- Once students have created their repositories by accepting the invitation and uploading a file, run the following script to give your TA access to the repositories (modify as needed)
#!/bin/csh -f
setenv orgName UNGPhysics
setenv assignmentName phys101-lab01
setenv profUsername profDudeLebowski # github username of professor
setenv profPW abc123 # github password of professor (unfortunately has to be hardcoded)
setenv TAUsername taBob # github username of TA
git config --global credential.helper 'cache --timeout=180' # remember username/password for 3 minutes (https://git-scm.com/docs/git-credential-cache)
foreach s ("student_username1" "student_username2" "student_username3")
curl -i -u ""$profUsername":"$profPW"" -X PUT -d '' "https://api.github.com/repos/$orgName/$assignmentName-$s/collaborators/$TAUsername"
end
git credential-cache exit # forget username/password