GENAI 102
M02 · L07
Software Engineering Fundamentals

Version Control & Collaboration

Version control — git — is a time machine and a safety net for your code. It lets you go back to any earlier moment, and it is how you work with a coding agent safely.

01 / 08
GENAI 102
M02 · L07
The Core Ideas

Four Words to Know

Almost everything in git is built from four simple ideas.

  • Commit — a saved snapshot of your project, with a short message saying what changed.
  • Branch — a parallel line of work, so you can try something without disturbing the main version.
  • Merge — bring a branch’s changes back into the main line.
  • History — the full chain of commits, so you can always go back.
02 / 08
GENAI 102
M02 · L07
Why It Matters With AI

A Safety Net for Agents

A coding agent can change many files fast. Commits let you review the diff — exactly what changed, line by line — before you trust it.

The real safety point
If an agent’s change goes wrong, a clean commit lets you undo it completely and get back to a known-good state.
03 / 08
GENAI 102
M02 · L07
Working Together

Pull Requests & Review

Collaboration in git happens through pull requests: you propose a set of changes, and someone — a teammate, or even future you — reviews the diff before it lands.

Where this lives
GitHub and GitLab host your repositories and provide the pull request and code review workflow.
04 / 08
GENAI 102
M02 · L07
The Builder’s Habit

Commit Small and Often

Make many small commits with clear messages, rather than one giant one. It keeps agent work reviewable, and it makes mistakes cheap to reverse — you only ever lose the last small step.

05 / 08
GENAI 102
Build It
From Concept to Capstone

Build It

How to implement: initialize a git repository for your project before you write a line of code, and make your first commit. From then on, commit after each working change.

  • Weekly AI Tasks tracker — commit before letting an agent make big changes, so you can diff what it did and roll back if needed; the original Weekly Planner even syncs via git.
  • Personal brand site — versioning lets you try bold design changes and revert instantly; hosting often deploys straight from the repo.
06 / 08
GENAI 102
Knowledge Check

Check what stuck

Three questions from this lesson. Answer to see why — the explanation appears whether you were right or wrong. Nothing is scored or saved.

Question 1 of 0
Score 0/0

07 / 08
GENAI 102
Summary
Recap

What you learned

Git gives you commits, branches, merges and history — a time machine and a safety net. Reviewing diffs makes agent work safe; commit small and often; pull requests are how you collaborate.

08 / 08