Undo a Published Git Mistake with Revert
See what happens behind every command.
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.
- 01
Inspect a saved change to find what went wrong.
- 02
Reverse a mistake with a new commit that keeps the earlier versions.
- 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.
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.Follow the buttons or try commands yourself. Finish with two recap questions.
Starting point: an empty folderRecipe analogy & setup
Type a command or choose a quick command. Your simulated history stays here when you switch tabs.
More quick commands
mainClick a commit to inspectGitHub hosts your online copy. Teamwork is a separate path.
