All challenges

Git · medium

Abort the experiment

#10

Situation

Good habits: the cache-expiry experiment for edge-proxy went to its own spike branch, spike/cache-ttl, and you are standing on it right now with the experiment committed. The verdict just came from your own testing: expiring entries means faking time across half the service, and that rewrite is not worth it. The spike is a dead end. Abort the mission: back to solid ground, and no zombie branch left behind; dead spikes pile up fast in a busy repo.

Objective

Get back to main with a clean working tree and make the spike branch disappear completely. History on main must stay exactly as it was: one commit.

The repo at start

repo/               (HEAD: spike/cache-ttl)
└── src/
    ├── cache.ts    (the expiry experiment, committed on this spike)
    └── server.ts

Checks you will turn green

  • Back on main, history untouched
  • The spike branch is gone
  • The experiment left the working tree

Concepts

branchesspikeunmergedhistory

Play it in your terminal

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

sharpen 10

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