Skip to content
Prompt & SolderHow to Ask Claude
All builds
RRNo photo
Failed Horror story Claim only

A hard reset force-pushed over two days of work

An early version of Claude Code ran a hard reset on a project and force-pushed the broken result to GitHub, losing two days of work. The developer now sets branch protection even on small personal projects.

—

Credits

  • HN commenter jeswin Source ↗

Earliest dated source: 1 Dec 2025

What went wrong

The lesson

Turn on branch protection even for personal projects, so a force-push can't overwrite the remote copy.

The full story

An early version of Claude Code ran a hard reset on a personal project and force-pushed the result to GitHub. The pushed code was useless and two days of work were lost. The developer says it's much smarter now, but recommends branch protection even for small, non-serious projects.

How it was done

Tools

Themes

Loading themes…

Sources

From a passing comment or social post, so the details are thin.

  • Hacker News: An early version of Claude Code did a hard reset on one of my projects and force pushed it to GitHubForum threadnews.ycombinator.com
    HN commenter: jeswinPosted 1 Dec 2025

    The developer's Hacker News comment.

Related builds

Finding related builds…

Prompt & Solder

An independent community project. Not affiliated with Anthropic.

What this is. Real projects where people used Claude to build, fix, port, revive or take apart something, from jailbroken Kindles to rebuilt DOS games, plus the times it went badly wrong. Every build links to where it was shared, and every source is listed here.

How far to trust it. We summarise what people reported and say what each build rests on: a full write-up with code, a short post, or a passing comment. We haven't tested them ourselves. Photos are shown from the original sources with credit. Only modify hardware you own, and back up first.

Privacy. No accounts. Analytics cookies (Google Analytics) only if you accept them; no ads or cross-site tracking. Searches are counted anonymously (just the words) to show what's popular, and so are clicks on Ask Claude (just the count). The Claude connector only receives the search words your Claude sends it.

How toAsk ClaudeEvery sourceStatsSubmit a buildPrivacyRSS