Safe sandbox
LEARN BY DOING

Undo a Published Git Mistake with Revert

See what happens behind every command.

EXPLORE · EXPERIMENT · UNDERSTAND
SOLO PATH · LESSON 04 OF 4

Correct a mistake

You accidentally removed flour and pushed that change to your own GitHub repository. Add a correction without hiding the earlier saved versions.

WHAT YOU WILL LEARN
  1. 01

    Inspect a saved change to find what went wrong.

  2. 02

    Reverse a mistake with a new commit that keeps the earlier versions.

  3. 03

    Upload your correction to your own GitHub repository.

You will see why correcting a published mistake can add to history instead of erasing it.

YOUR STARTING POINT
2existing saved versions
Your computer + your GitHub

This solo exercise prepares two saved versions: your original recipe and a mistake that removed flour. Both are already on your own GitHub repository. You will add the correction.

Each lesson starts from this setup so you can replay it independently.
Words you’ll meet
~ 3 min · 3 guided actions

Follow the buttons or try commands yourself. Finish with two recap questions.