All challenges

Git · easy

The vanished file

#7

Situation

Friday afternoon cleanup in status-page went one rm -rf too far: deploy.sh and the whole scripts/ folder are gone from disk, and the release pipeline exits red on the very first step. Everything was committed, nobody touched the stage, and the deploy window closes soon. Your untracked scratch.md notes from the incident must stay put.

Objective

Bring every deleted file back exactly as committed, byte for byte. Leave scratch.md untracked. Nothing staged, history untouched.

The repo at start

repo/
├── README.md
├── deploy.sh        (just deleted from disk)
├── scratch.md       (untracked notes - keep)
└── scripts/
    └── healthcheck.sh   (also gone)

Checks you will turn green

  • deploy.sh is back, byte for byte
  • healthcheck.sh is back, byte for byte
  • Your scratch notes stay untracked
  • Nothing staged
  • History untouched on main

Concepts

working treedeletedrestoreuntracked

Play it in your terminal

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

sharpen 7

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 7
  4. or Or try it without installing anything:
    npx @juanwmedia/sharpen 7
  5. 4 And to update when a new version ships:
    sharpen update