Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code

Quiz: The bad change is already in a commit

In the "break and recover" drill the bad change went into a commit, and the tests are red. How do you go back?

Answer options

  • /rewind and Restore code, because checkpoints also undo commits made in this conversation
  • git revert with the number of the bad commit: a new commit reverses its effects, and the history stays untouched
  • git reset --hard and git push --force, so that the bad change disappears from the history
  • A manual fix in Cursor and a new commit, without looking for which commit broke it

You can check the correct answer by solving this task in the CodeWorlds game.