L5 — Version Control & Collaboration
Track 2: Vibe-Coder Level-Up · B.U.I.L.D. letter: D (Document, Test & Deploy)
If your backup strategy is
project_final_v3_REAL.zip, this lesson changes your life. Git is a time machine and a safety net — and the universal language of working with others.
⚠️ The vibe trap
No version control means: no undo beyond Ctrl+Z, no history of why things changed, and a constant low-grade fear of breaking something that currently works. So you stop experimenting. Git removes that fear.
⏳ Git as a time machine
- A commit is a labeled snapshot of your whole project at a moment in time.
- You can always go back to any commit. Broke everything? Travel back. That safety is freedom to experiment.
- Write real commit messages: "Add login validation," not "stuff" or "asdf." Future-you is reading these to understand the past.
🌿 Branches & pull requests
- A branch is a parallel copy where you try something without touching the working version.
- When it's good, you merge it back — often via a pull request (PR): a proposal to merge, where code gets reviewed first.
- PRs are where code review happens. Use the Code Review Rubric (pinned in Featured) to give kind, specific feedback.
🛡️ Two habits that save you
- A
.gitignoreso you never commit secrets (.env) or junk (node_modules). - A README so anyone (including future-you) knows what the project is and how to run it.
🛠️ Your mission
Take any project and: (1) git init, (2) add a .gitignore (exclude .env and node_modules), (3) make three meaningful commits with real messages, (4) push it to GitHub. Bonus: open a branch, make a change, and merge it via a pull request.
✅ You're done when…
- The project is in Git with a clean history of real commit messages
- Secrets and junk are
.gitignored (nothing sensitive committed) - It's pushed to GitHub with a README
➡️ Next: L6 — Performance & Audits. Build It Right, Or Don't Build It At All. 🏛️