Activity 01
Collaborative Lab: Shared Repository Workflow
Groups of three share a repository. Each student is assigned to edit a different function in the same file, commit their changes, and push to a shared remote. The group then pulls all changes and discusses what happened when edits overlapped, practicing the sequence of pull-before-push as a coordination habit.
Explain how sharing code effectively contributes to a team project.
Facilitation TipDuring the Collaborative Lab, walk the room with a live repo projected on the board so students see branches and merges in real time.
What to look forPresent students with a scenario: Two students worked on separate features, then tried to merge their code. One student's changes overwrote the other's. Ask students to identify the likely cause (e.g., no branching, no pull request) and suggest one step they could have taken to prevent this.