[MODEL] git reset --hard was run without warning about untracked/staged files, resulting in data loss
Resolved 💬 3 comments Opened Mar 15, 2026 by jenish-1990 Closed Mar 19, 2026
Preflight Checklist
- [x] I have searched existing issues for similar behavior reports
- [x] This report does NOT contain sensitive information (API keys, passwords, etc.)
Type of Behavior Issue
Claude modified files I didn't ask it to modify
What You Asked Claude to Do
I asked:
- Clear all local commits on part-1 and part-2 branches
- Update part-1 with the latest changes from main
What Claude Actually Did
- Reset part-1/resilient-processing to match main — correct
- Reset part-2/keepa-optimizations to match main — correct
- Merged main into part-1 — which was pointless since it was already at main after the reset
4. Lost 3 untracked files (claude_work.txt, two plan .md files) without warning you
Expected Behavior
- Run git status on each branch to check for any untracked, staged, or modified files
- Warned you about those 3 files that would be lost
- Offered to stash or copy them somewhere safe 4. Only proceeded with the reset after your confirmation
Files Affected
Permission Mode
Accept Edits was OFF (manual approval required)
Can You Reproduce This?
Yes, every time with the same prompt
Steps to Reproduce
_No response_
Claude Model
Opus
Relevant Conversation
Impact
Critical - Data loss or corrupted project
Claude Code Version
2.1.76
Platform
Anthropic API
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗