Undo a change with a new history-preserving commit. Practise git revert <commit> in an interactive Git puzzle.
git revert undoes a commit by adding a new commit that does the exact opposite.
GitGud runs in your browser and needs JavaScript turned on to play.