All challenges

Git · easy

Not on main

#3

Situation

First week. They told you in the welcome doc, twice: nothing lands on main except through a pull request. You still built the welcome banner in src/banner.ts while the prompt said main. It is not committed yet. Your stomach knows the plot: one wrong Enter and you are the person who pushed straight to main on day four. The banner is fine. The branch is wrong.

Objective

Land the banner as one commit on a new branch named feature/welcome-banner. main must stay exactly where it was. Nothing left staged or untracked.

The repo at start

repo/
├── README.md
└── src/
    └── banner.ts    (new work, still untracked)

Checks you will turn green

  • HEAD is feature/welcome-banner with the banner committed
  • The committed file is the banner
  • main never moved
  • Nothing staged
  • No untracked files remain

Concepts

branchesworking treecommit

Play it in your terminal

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

sharpen 3

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