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
Earliest dated source:
What went wrongThe 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 GitHubHN commenter: jeswinPosted
The developer's Hacker News comment.