All topics

Git and working in a team

Learners track changes to code, undo mistakes, work on branches, and merge and review work with others safely.

Outline

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

  1. Why version control matters for a team
  2. Creating a repository and making a first commit
  3. Writing clear commit messages
  4. Reading the history and the differences between versions
  5. Undoing mistakes safely
  6. Keeping secrets and junk out: .gitignore
  7. Branches: working on a change safely
  8. Merging and fixing conflicts
  9. Git is not GitHub: remotes on a USB stick, the other laptop, or GitHub
  10. Pulling and pushing with a remote
  11. Reviewing a change before it merges
  12. Working as a team on one shared project

Teach it as

One sessionCreate a repository, make three commits, read the history and the differences, and undo one change, in one 2 hour class.
One dayMorning: why version control matters, commits, history, and undoing mistakes. Afternoon: branches, merging, and fixing a simple conflict.
One weekDay 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

Standards this follows

Videos to download

No videos listed yet.