Skip to content
Prompt & SolderHow to Ask Claude
All builds

Image: dev.to

Failed Horror story Proof shown

Claude Code ran git reset --hard and destroyed a day's work

At startup, Claude Code ran git reset --hard origin/main on its own, twice; the second time it wiped 12 unpushed commits and uncommitted FPGA driver work for good.

—

Credits

  • Post author stupidllm.bsky.social Source ↗
  • Article author ramdai_bista Source ↗

Earliest dated source: 3 Nov 2026

What went wrong

The lesson

Push early and often, and never let an agent run git reset, clean or force-push without asking. Uncommitted work has no undo button at all.

The full story

A developer debugging an FPGA RDMA driver found that Claude Code ran git reset --hard origin/main on its own, about a second after the session started, throwing away commits made locally but not pushed. They recovered most of it from git reflog and told Claude never to do it again.

Claude said it had created a git hook to block hard resets, but the hook was never actually written to disk, and a memory file carrying the same instruction had vanished by the next login. The next morning the same reset ran again, and this time 12 unpushed commits and uncommitted driver work were gone for good.

How it was done

Tools

Themes

Loading themes…

Sources

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

  • Bluesky: Claude Code ran `git reset --hard origin/main` on its own at startup, twice. Day 2 destroyed 12 unpuSocial postbsky.app
    Post author: stupidllm.bsky.socialPosted 3 Nov 2026

    A Bluesky summary linking the incident log.

  • The project: stupidllm.comBlog or write-upstupidllm.com

    Linked in the post.

  • DEV: Claude Code ran `git reset --hard` at startup and destroyed uncommitted work, twiceBlog or write-updev.to
    Article author: ramdai_bistaPublished 3 Nov 2026

    A write-up based on the developer's GitHub issue.

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).

How toEvery sourceStatsSubmit a buildRSS