Quantcast
Channel: GitHub Classroom - GitHub Community
Viewing all articles
Browse latest Browse all 55

Mechanisms for updating an assignment?

$
0
0

Is there a mechanism to update an assignment? I can imagine two:

  1. students add a remote for the template, and pull & merge on their own
  2. a mechanism for instructors to submit a pull request updating an individual student from the commit at which they forked to another specified commit (defaulting to the tip of the default branch). Ideally, there would be a button, “Update all students to a commit,” that would do this for every student who has accepted the assignment.

Are either of these supported? I’m sure I can do #2 manually, but automating it would be nice. Or is there another way to do this? I know there are likely merge conflicts, but since part of the point of my course is to teach students how to use git, this is more of a “teachable moment” than a problem.

Related question: Github classroom assignment

EDIT: since others have asked before, let me at least show how to do #2. I’ll assume the default branch is called main (yours might be called master):

  • clone the student’s repo to your machine
  • add a remote to your (private) template: git remote add template <url from the "Code" dropdown> (you have access to this, but the student doesn’t)
  • git remote update
  • create a branch for making this update. If the student has already committed changes, it’s probably best to start this branch from the very first commit rather than main
  • because there isn’t any shared git history, we need to make changes manually: git diff --binary HEAD..template/main | git apply
  • inspect the changes, make any necessary modifications, add & commit
  • submit the pull request:
    • directly, if you want the student to manage any merge conflicts
    • after merging the student’s main branch into this one, if you want to manage the conflicts yourself

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 55

Trending Articles


Grand galla med gull og glitter


Psykiater Tonny Westergaard


Jav Uncensored - Tokyo-Hot n1002 Miyu Kitagawa


Moriya Suwako (Touhou)


BRODERET KLOKKESTRENG MED ORDSPROG 14 X 135 CM.


Naruto Shippuden Episode 471 Subtitle Indonesia


Fin gl. teske i sølv - 2 tårnet - stemplet


Kaffefilterholder fra Knabstrup


Anders Agger i Herstedvester


Onkel Joakims Lykkemønt *3 stk* *** Perfekt Stand ***


Sælges: Coral Beta/Flat (Højttaler-enheder)


Starwars landspeeder 7110


NMB48 – Durian Shounen (Dance Version) [2015.07.15]


Le bonheur | question de l'autre


Scope.dk som agent?


Akemi Homura & Kaname Madoka (Puella Magi Madoka Magica)


Tidemands taffel-marmelade julen1934+julen 1937+julen 1938.


Re: KZUBR MIG/MMA 300 zamena tranzistora


Analyse 0 mundtlig eksamen


DIY - Hæklet bil og flyvemaskine