🗒 Cheat Sheet← Lesson
BitWithBite
Git & GitHub Worksheet

🔘 Advanced Git

Chapter: Git & GitHub · Level ★☆☆ · Time: 30 min
SCORE___ / 20
NameClassDate
After this worksheet you can
Undo with restore/reset/revertStash work.gitignoreTags
📚 Quick Recap

🎯 What you'll learn: Git stash for saving work in progress. Interactive rebase to clean up commit history before a PR. Cherry-pick to apply specific commits. The three reset modes and when each is safe. Git reflog — your safety net for recovering anything. Annotated tags for releases. Git aliases to speed up your workflow.

🧠 Section A · Concept Check ● BEGINNER 4 × 1 = 4

1Safely undo a pushed commit with:
2Shelve uncommitted work with:
3Ignore files via:
4Mark release points with:

🧮 Section B · Problem Solving ● INTERMEDIATE 2 + 3×3 = 11

5git stash brings work back.
6node_modules/ belongs in .
7You committed a secret key - safe fix on a shared repo?
8What goes in .gitignore? Give 3.
9Stash use case?

🚀 Section C · Challenge ● CHALLENGE 5

10revert vs reset in one line?
💭 Reflection — the most useful thing I learned:
A ___/4   B ___/11   C ___/5   Total ___/20 Teacher's Signature Parent's Signature
✂ answer key — fold or cut before handing out

1-A   2-A   3-A   4-A  |  5 pop   6 .gitignore   7 = git revert (and rotate the key!) - history is shared   8 = node_modules, .env, build output, OS junk   9 = Switch branches urgently without committing half-done work  |  10 = revert adds an undo commit (safe shared); reset moves history (local only)

📄 Need offline practice?Download the print-ready PDF or open the one-page cheat sheet.
⬇ Worksheet PDF 🗒 Cheat Sheet