Skip to content

Reset Code

Tim Bird edited this page Jan 11, 2023 · 4 revisions

Here are the steps to save the class data, and reset the master branch to the starting commits and status for the next class:

(replace 1 with the class number)

  • git branch class1
  • git push -u origin class1:class1
  • git checkout -b start origin/newcode
  • git push -f origin start:master
  • git checkout master
  • git reset --hard origin/master
Clone this wiki locally