Git — Version Control
Git tracks every change you make to your code, forever. It is the undo button that never expires — and the foundation of how all software teams collaborate.
Imagine writing an ITR for a client, making changes over three weeks, and then the client says "go back to the version from two Wednesdays ago." Without a history system, you are searching through email threads and old file copies labelled ITR_final_v3_ACTUALLY_FINAL.xlsx.
Git solves this. Permanently.
What Git Is
Git is a version control system — a tool that tracks every change you make to your code, who made it, when, and why.
Every time you save a meaningful checkpoint, you create a commit: a snapshot of your entire project at that moment. Git keeps every commit, forever. You can:
- Go back to any past commit
- Compare what changed between two commits
- Work on a new feature in isolation (a branch) and merge it in when it is ready
- See who changed which line and when (
git blame)
The CA analogy: Git is like having a complete, timestamped audit trail of every change to every document in your firm — automatically, forever. Not just the latest version, but every version, with notes on why each change was made.
The Three Concepts That Matter
1. The Repository (repo)
Your project folder, tracked by Git. Run git init once, and Git starts watching.
2. The Commit
A saved snapshot with a message:
Now that change is recorded with a timestamp and message. Permanently.
3. The Branch
A parallel version of your project where you try something without touching the main code:
If the feature breaks something, you discard the branch. Main is untouched.
Why Git Matters Before Claude Code
When Claude Code writes code for you (Session 4), it will modify files — sometimes many at once. Git is what lets you:
- Review what changed before accepting it
- Roll back if the change broke something
- Keep a clean history of what you (and Claude Code) built and why
A developer without Git is like a CA without work papers. You might produce the right answer, but there is no audit trail and no way to undo a mistake.
Hands-On: Your First Commit
In VS Code's integrated terminal:
You should see one line: your commit with its short ID and message. That is your first entry in a history that never expires.
Before you move on — can you do all of this?
Click each item you're confident about. Bring the unchecked ones to your next session.
I understand what a commit is — a timestamped snapshot with a message
I understand what a branch is — a parallel version to try changes safely
I ran git init, git add, and git commit in the terminal
I understand that Git runs locally — GitHub is what puts it in the cloud