🏁 Module 07 — Exercises & Study Plan (Capstone)
Reading got you here. This module is where reading turns into muscle memory — the only thing that actually sticks.
By the end of this module you will be able to:
✓ Run the full branch → commit → PR → merge → recover → bisect loop from memory, not notes ✓ Self-assess exactly which modules need a second pass, using the quiz bank ✓ Point at a real, well-organized Git history as proof you know this, not just a certificate
📑 In This Module
- Syllabus — The Whole Course, One Page
- Study Plan — Suggested Pacing
- Exercises — Progressive, By Module
- 🏆 Git Mastery Challenge (Capstone)
- Quiz Bank
- You’re Done — Now What
📚 Syllabus — The Whole Course, One Page
00 → Introduction & Setup Version control concepts, install, config
01 → Git Fundamentals Staging, commits, branching, merging — the daily loop
02 → Git + GitHub SSH, remotes, push/pull, GitHub Flow, Pages
03 → Contributing to Open Source Fork, clone, pull requests
04 → Undo & Recovery Revert, reset, amend, rebase, reflog
05 → Advanced Git gitignore/attributes, LFS, signing, hooks, submodules, CI/CD
06 → Certification Prep Structured review + exam-style practice
07 → Exercises & Study Plan ← you are here
Each module has its own Quick Check-In at the end — if you skipped any of those, this is a good moment to go back and actually answer them before diving into the exercises below.
🗓️ Study Plan — Suggested Pacing
| Pace | Schedule | Total Time |
|---|---|---|
| Relaxed | 1 module every 2-3 days, 30-45 min/day | ~3 weeks |
| Focused | 1 module/day | ~1 week |
| Cram (not recommended, but real) | 2-3 modules/day | 2-3 days |
[!TIP] The “Relaxed” pace isn’t the slow option for people who can’t commit — it’s genuinely the one that produces better retention. Git concepts (especially branching, rebase, and conflict resolution) benefit enormously from spaced repetition: read it, sleep on it, use it in a real scenario, revisit it. Cramming all 8 modules in one sitting produces recognition (“oh yeah, I read that”), not the actual recall you need mid-interview or mid-incident.
Suggested week-by-week (Focused pace):
gantt
title GIT Tutorials — Suggested 1-Week Focused Plan
dateFormat YYYY-MM-DD
section Foundations
Module 00 + 01 :done, m1, 2026-01-01, 1d
section GitHub
Module 02 :m2, after m1, 1d
Module 03 :m3, after m2, 1d
section Safety Net
Module 04 :m4, after m3, 1d
section Advanced
Module 05 :m5, after m4, 1d
section Consolidate
Module 06 :m6, after m5, 1d
Module 07 + Capstone :m7, after m6, 1d
💪 Exercises — Progressive, By Module
Module 00–01 Exercise: “Your First Real Repo”
git inita new folder for a genuinely simple project (a personal notes app, a to-do list — doesn’t matter what, it just needs to exist)- Make 5 separate, meaningful commits, each with a proper message (not “update”, not “fix”)
- Create a branch, make 2 more commits on it, merge it back into
main - Run
git log --oneline --graph --alland actually read the shape of what you built
Module 02 Exercise: “Push It Somewhere Real”
- Set up SSH authentication with GitHub (if you haven’t already)
- Create a new empty repo on GitHub, connect your local repo from above as
origin - Push everything
- Make one more change directly via the GitHub web editor, then
git pullit down locally
Module 03 Exercise: “Your First Real Contribution”
- Find a small open-source project with a
good first issuelabel (search GitHub’s issue filters, or check goodfirstissue.dev) - Fork it, clone your fork, make the fix on a properly named branch
- Open a real Pull Request — even if it’s just a documentation typo fix. This is genuinely one of the highest-value 30-minute exercises in this entire course.
Module 04 Exercise: “Break It on Purpose, Then Fix It”
- In a throwaway test repo, make 3 commits
git reset --hard HEAD~2(deliberately “lose” 2 commits)- Use
git reflogto find and recover them - Now deliberately create a merge conflict (edit the same line on two branches), resolve it properly, and commit the resolution
Module 05 Exercise: “Set Up a Real Safety Net”
- Add a proper
.gitignoreto a project using gitignore.io - Set up a
pre-commithook that runs a linter or even justecho "committing..."as a first test - Cherry-pick one specific commit from one branch onto another
🏆 Git Mastery Challenge (Capstone)
This is the final “prove you can actually use Git” exercise — one continuous scenario using everything from Modules 00–05 together, the single best way to confirm the concepts connected into one coherent mental model instead of staying isolated facts.
🎯 THE SCENARIO
You’re working on a small automation project. Starting from a fresh GitHub repo, you need to:
- Set up
.gitignoreproperly from the start - Create a feature branch, make commits, push it
- Open a real Pull Request and merge it via GitHub
- Deliberately create a merge conflict between two branches, and resolve it
- Rebase a local feature branch onto
mainbefore opening its PR - Make a commit with a typo in the message,
--amendit before pushing - Push a bad commit, then
revertit cleanly on a branch that’s already shared - Deliberately “lose” a commit with
reset --hard, then recover it withreflog - Use
git bisectto identify exactly which of several commits introduced a deliberately planted bug - Tag a release, add a
pre-commithook, and write a clean, genuinely good README
Don’t look at the hints yet. Try the whole thing from memory first — that’s the actual point.
💡 Stuck? Hints (not the solution)
- Steps 1–4 are the GitHub Flow loop from Module 02, plus the conflict lab from Module 04 - Step 5: rebase your feature branch *before* opening the PR, not after — that's the whole reason teams rebase local branches instead of `main` - Step 8 only works if the "lost" commit was actually committed first — `reflog` can't rescue uncommitted changes, by design - Step 9: plant a bug in one commit among several on purpose, mark the current state `bad`, an earlier known-good commit `good`, and either bisect manually or write one script you can hand to `git bisect run`💡 Partial solution — steps 1–4
```bash git init my-automation-project && cd my-automation-project echo "node_modules/" > .gitignore && echo ".env" >> .gitignore git add .gitignore && git commit -m "chore: initial gitignore" git remote add origin💡 Complete solution — all 10 steps
Steps 5–10, continuing from the state above: ```bash # 5. Rebase before opening a PR git switch -c feature/second-change echo "more work" >> feature2.js && git add feature2.js && git commit -m "feat: second change" git fetch origin && git rebase origin/main # 6. Amend a typo'd message before pushing git commit --allow-empty -m "fx: typo" git commit --amend -m "fix: corrected message" # 7. Revert a bad commit already shared git push -u origin feature/second-change echo "oops" >> feature2.js && git add feature2.js && git commit -m "feat: broken change" && git push git revert --no-edit HEAD && git push # 8. Lose and recover a commit echo "important" >> feature2.js && git add feature2.js && git commit -m "feat: important work" git reset --hard HEAD~1 git reflog git branch recovered HEAD@{1} # 9. Bisect a planted regression (simplified — exit code stands in for a real test) git bisect start git bisect bad HEAD git bisect good💡 Explanation — why these 10 steps specifically
Every step maps to a real failure mode this course spent a whole module on: steps 1–4 are the daily loop (Modules 01–02), step 5 is the "clean up before review" habit senior engineers expect, steps 6–8 are Module 04's safety net exercised for real, step 9 is the single highest-leverage debugging skill this course teaches, and step 10 is "does your own repo practice what this course preaches" — the same bar [Module 04's Disaster Labs](../04-undo-and-recovery/#-disaster-labs) and this very repository hold themselves to.| ⬆ Back to Top | 🏠 Main README | ← Previous: Certification Prep |
You went from git init to resolving merge conflicts and recovering “lost” commits with reflog. That’s not nothing — that’s Git.