GuideCoding & GitCompanion to Git

Undo first, then redo: when a change goes live before you say stop

Sometimes a change reaches your live site just before you say stop. The tempting fix is a quick patch on top. A calmer order works better: undo the change cleanly, write down what was wrong, then redo it properly.

What happened on bot.ski

On the evening of October 14, 2026, a homepage layout change was merged at 10:18 PM Central. It moved the Templates band above the hero banner, so the big opening image no longer came first. The site owner didn't want that. The hero belonged at the very top, with the rest of the page clearly sectioned below it. By the time the stop came, the change was already merged.

At 10:33 PM a pure revert was merged. It changed nothing else. Afterward the code matched the commit from before the layout change exactly, so the homepage was back to a known-good state.

At 11:43 PM the layout work was merged again as a new change, after review. This time it followed a written rule: the hero is the first block, the Templates band sits directly under it, and nothing goes above the hero whether the Templates switch is on or off.

Three steps run top to bottom: undo with a pure revert, write the rule down, then redo the change through review. An arrow from the redo step points back to the rule it has to meet.
Undo first, then redo. Undo to a known-good state, name the rule, then redo against it.

Figure explanation: Three boxes run in order. Box 1: undo, with a pure revert that brings the site back to exactly how it was before the change. Box 2: write the rule, turning the objection into one sentence the next attempt must meet. Box 3: redo the change through normal review. An arrow from box 3 points back to box 2, because the redo is checked against the written rule.

Sources

Checked October 15, 2026. The homepage example comes from bot.ski's own build log for October 14, 2026.

  1. Grok Bot: Approvals, security, and privacy
  2. Git: git-revert

Cookie preferences