Lecture 02: Dev Environment and Git
- Session: Day 1, Fri 4 Dec 2026, block B 1:00-4:00, Lab 16 (group AI-2)
- Duration: 3 hours, face to face, laptops required
- Prerequisites: Lecture 01; a GitHub account created before the session
- Before: C1-1 Machine Learning with Python
Learning objectives
- Create and use a virtual environment and a requirements file.
- Explain Git's data model: content hashes, commits, branches, the DAG.
- Branch, merge and resolve a conflict using the three-way merge rule.
- Push a clean repository to GitHub without venvs or secrets.
Sections
| # | Section | Minutes |
|---|---|---|
| 0 | Recall on Lecture 01 | 10 |
| 1 | Isolated environments | 20 |
| 2 | Git's data model, concept question 1, animations | 30 |
| - | Break | 10 |
| 3 | Branches and merges, concept question 2 | 25 |
| 4 | GitHub workflow, Parsons practice | 10 |
| 5 | Lab: portfolio repo, check_repo.py; exit ticket |
75 |
Materials
notes.md,exercises.md,slides.mdinstructor.md: timing cues, misconceptions, what to cut if lateglossary.md: terms in English and Arabiccode/check_repo.py,code/test_check_repo.py,code/figures.py