The code developed in class will be uploaded here. Each semester's delivery for each lecturer is in a separate branch. To find your class, look for a branch named in the format yyyy/sn/lecturer
. For example, for Semester 2 of 2023 with lecturer Raf, the branch would be 2023/s2/raf
.
This workflow is specifically tailored for working with this repository, which will be constantly updated by the lecturer during the class.
-
Clone this repository locally:
git clone https://github.com/NM-TAFE/civ-ipriot-in-class-demos.git cd civ-ipriot-in-class-demos
-
List all available branches to find your class:
git fetch origin git branch -r
-
Switch to the appropriate branch for your class:
git checkout -b local_class_branch origin/yyyy/sn/lecturer
-
If you want to experiment with the code locally, create a new branch:
git checkout -b local_experiments
-
Periodically, fetch changes from the upstream repository:
git fetch origin yyyy/sn/lecturer
-
Merge the changes from the upstream's class-specific branch into your local branch:
git checkout local_experiments git merge origin/yyyy/sn/lecturer
or, if you want to keep your local branch's history clean, you can rebase instead of merge:
git checkout local_experiments git rebase origin/yyyy/sn/lecturer
If there are any conflicts, you'll need to resolve them and continue the rebase using
git rebase --continue
. -
Remember not to push your changes to the upstream repository.