All challenges

Git · medium

Wrong branch, wet paint

#9

Situation

Thirty minutes into the retry logic for flaky endpoints you glance at the prompt: you have been editing on main the whole time. Nothing is committed yet. Team policy is not negotiable: main only moves through pull requests, and yours is not one.

Objective

Land the retry work as a single commit on a new branch named feature/retry-loop. main must stay exactly where it was.

The repo at start

repo/
└── src/
    └── client.ts   (30 minutes of uncommitted work)

Checks you will turn green

  • HEAD is feature/retry-loop with the work committed
  • The committed file is exactly the retry work
  • main never moved

Concepts

branchesworking treestaging

Play it in your terminal

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

sharpen 9

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