Undo anything with Git

About 45 minutesYou need: my-studio-site on the practice-bugs branch with git status clean, npm run dev running, Chrome beside Cursor
This video is in the full courseGet the course to watch every video and read every lesson in full. GHS 399, paid once.Get the course · GHS 399
Video · 14:26
Goal

Use Git to see exactly what changed, throw away changes before you commit, undo a commit after you've made it, bring back an old version of a file, and use branches as a safe sandbox.

Why this matters

Every fixing technique in this module has the same safety net underneath it: you can always go back. Restore Checkpoint covers you inside one Cursor chat. Git covers you everywhere else: across chats, across days, after you've closed Cursor, and after you've committed.

You've used a little of it already. In Lesson 2.8 you discarded a change in the Source Control panel. In Lessons 5.2 to 5.4 you used git restore and git status to clean up. This lesson fills in the whole picture, so that whatever goes wrong, you know which undo to reach for.

There's a confidence effect too. Once you know you can undo anything, you stop being afraid of trying things. That's when you start learning fastest.

In the full lesson

  1. The idea in plain English
  2. Do it
  3. Check it worked
  4. Quick check
  5. What you can do now
Stage 2 · Make it workYou’ve seen the why. The how is in the course.

The step-by-step, the prompt to copy, the video and the check-it-worked list, for every lesson in all 15 modules. GHS 399 ($40), paid once by mobile money or card, yours to keep.

Get the course · GHS 399See what’s inside
Already have the course? Open the full lesson