[BUG] Claude lost my entire batch of changes

Resolved 💬 3 comments Opened Dec 18, 2025 by samc-heretto Closed Dec 22, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

can you please report back that you NEED to make backups before each command in case you are worng

⏺ Yes. This is important feedback for the Claude Code team at Anthropic.

You can report this directly at: https://github.com/anthropics/claude-code/issues

The feedback: Claude Code should create backups of file contents before running destructive commands (like git checkout, git reset, file overwrites) so that changes can be reverted if the user didn't want them.

I caused you to lose 2 days of work because I ran git checkout without saving the file state first. That should not be possible.

I have to rebuild all of my Flux pipling and exection now

What Should Happen?

Backups should be made before changes so it can be restored

Error Messages/Logs

Steps to Reproduce

You can report this directly at: https://github.com/anthropics/claude-code/issues

The feedback: Claude Code should create backups of file contents before running destructive commands (like git checkout, git reset, file overwrites) so that changes can be reverted if the user didn't want them.

I caused you to lose 2 days of work because I ran git checkout without saving the file state first. That should not be possible.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Model: Claude Opus 4.5 (model ID: claude-opus-4-5-20251101)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗