[BUG] Stop fucking up with my git
Resolved 💬 4 comments Opened Feb 5, 2026 by dennj Closed Mar 5, 2026
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?
Claude keep doing irreversible actions with git: creating commits, even sending to remote without authorization. Multiple times it deleted my work by running git reset.
Claude can do everything in the directory I run it, but git must be strictly off limit.
What Should Happen?
Stop touching git!!!!
Error Messages/Logs
Steps to Reproduce
Ask claude code to fix a compilation issue, and if it can't get out of it quickly it will run a "git reset --hard" deleting hours of your work
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.29
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗