All challenges

Git · easy

Take it back

#2

Situation

You opened src/welcome.ts to "tighten the copy" and somehow left a joke in the empty-state string. It was funny for four seconds. Your lead is screensharing the onboarding flow in five minutes and that line will be on the wall. The good version is already committed. What sits on disk right now is the mistake. You do not want a new commit. You want the file to look like it never happened.

Objective

Make src/welcome.ts match the committed version again. Leave history on main untouched. Nothing staged.

The repo at start

repo/
└── src/
    └── welcome.ts   (you "improved" the copy - undo it)

Checks you will turn green

  • welcome.ts matches the committed copy
  • History untouched on main
  • Nothing staged

Concepts

working treerestoretracked

Play it in your terminal

With sharpen installed, this command opens exactly this challenge in your local arena:

sharpen 2

First time? The full install is right below.

How to play

  1. 1 Install Claude Code if you do not have it yet: claude.com/claude-code
  2. 2 Install sharpen from npm:
    npm install -g @juanwmedia/sharpen
  3. 3 Then launch it; the arena opens in your browser:
    sharpen 2
  4. or Or try it without installing anything:
    npx @juanwmedia/sharpen 2
  5. 4 And to update when a new version ships:
    sharpen update