被claude code删除文档无力狂怒emo落泪后得后续补救

2026-04-11 11:220阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述: claude opus,我X你先人 搞七捻三
[image] 曹!!!!!!!!!!!!!!!!!!!!!!!

文件没能救回来。
草泥马!!!!!!!!!!!!!!!!!!!!!!!!!
千万不要没有隔离就开YOLO。
以下是一个补救hook,供参考。
准备延毕

{ "hooks": { "BashSubmit": { "command": "bash", "args": ["-c", "if echo \"$CLAUDE_BASH_COMMAND\" | grep -qE '\\brm\\b|\\bdel\\b|Remove-Item'; then echo '[BLOCKED] 文件删除操作需要用户确认' >&2; exit 1; fi"] } } } 网友解答:


--【壹】--:

git 管理的重要性

问题描述: claude opus,我X你先人 搞七捻三
[image] 曹!!!!!!!!!!!!!!!!!!!!!!!

文件没能救回来。
草泥马!!!!!!!!!!!!!!!!!!!!!!!!!
千万不要没有隔离就开YOLO。
以下是一个补救hook,供参考。
准备延毕

{ "hooks": { "BashSubmit": { "command": "bash", "args": ["-c", "if echo \"$CLAUDE_BASH_COMMAND\" | grep -qE '\\brm\\b|\\bdel\\b|Remove-Item'; then echo '[BLOCKED] 文件删除操作需要用户确认' >&2; exit 1; fi"] } } } 网友解答:


--【壹】--:

git 管理的重要性