Who it is for: Learners who write code and plan to work with other people on a shared project.
Teams in Gulu and across Uganda often lose work when several people edit the same file. Version control keeps a full history and lets people work in parallel without overwriting each other. At the end, the learner can commit changes, work on a branch, merge it, and resolve a simple conflict.
Git is free and works with no internet. GitHub is one online service that stores Git repositories, but a remote can also be a folder on a USB stick or on the other laptop. Reading a change line by line before it merges is the same skill learners use later to review code that AI writes.
AI policy: Builders may use AI only as a tutor (explain a command, never run it for them), with the teacher present, after they have shown the skill without it. Pioneers and adults may ask AI for a command, but they say what it will do before they run it, and check the history afterwards. The checkpoint is done without AI.
Planned lessons
- Why version control matters for a team
- Creating a repository and making a first commit
- Writing clear commit messages
- Reading the history and the differences between versions
- Undoing mistakes safely
- Keeping secrets and junk out: .gitignore
- Branches: working on a change safely
- Merging and fixing conflicts
- Git is not GitHub: remotes on a USB stick, the other laptop, or GitHub
- Pulling and pushing with a remote
- Reviewing a change before it merges
- Working as a team on one shared project
Teach it as
| One session | Create a repository, make three commits, read the history and the differences, and undo one change, in one 2 hour class. |
|---|---|
| One day | Morning: why version control matters, commits, history, and undoing mistakes. Afternoon: branches, merging, and fixing a simple conflict. |
| One week | Day 1: repositories, commits, and commit messages. Day 2: reading history and differences, and undoing mistakes. Day 3: branches and merging. Day 4: conflicts, remotes, and reviewing a change. Day 5 (Build and Show): checkpoint without AI (fix a conflict and explain the history), then each team shows a shared project with its review notes. |
Know this first
- Python 1: first programs
Standards this follows
- DORA capabilities: version control, code review, trunk-based development
- CS2023 Software Engineering (SE): tools and environments, teamwork
Videos to download
No videos listed yet.