All challenges

Git · easy

Forgot the receipt

#11

Situation

You just committed the tip-jar helper. Thirty seconds later you notice receipt.md still sitting untracked: the copy that belongs in that same tip. History is local; nobody else has the commit yet. Do not stack a second commit on top.

Objective

Fold receipt.md into the tip you just made. Keep a single commit on main with both files. Leave nothing staged or untracked.

The repo at start

repo/
├── src/
│   └── tip.ts
└── receipt.md   (forgot to include)

Checks you will turn green

  • Both files are committed and clean
  • Tip helper stayed in the tree
  • Still a single commit on main
  • Nothing left untracked
  • Nothing staged

Concepts

amendstagingcommit

Play it in your terminal

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

sharpen 11

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