PulseAugur
中
实时 20:22:55
实体 .claude/hooks/block-risky-git.sh

.claude/hooks/block-risky-git.sh

PulseAugur coverage of .claude/hooks/block-risky-git.sh — every cluster mentioning .claude/hooks/block-risky-git.sh across labs, papers, and developer communities, ranked by signal.

Show in brief
总计 · 30天
1
90 天内 1
发布 · 30天
0
90 天内 0
论文 · 30天
0
90 天内 0
层级分布 · 90 天
主题
情绪 · 30 天

1 天有情绪数据

最近 · 第 1/1 页 · 共 1 条
  1. TOOL · CL_316967 ·

    Claude Code hook 阻止风险 Git 命令,防止数据丢失

    一位开发者为 Claude Code 创建了一个 PreToolUse hook,以防止潜在的破坏性 Git 命令。该 hook 以 Bash 脚本的形式保存,会拦截诸如 `git push --force` 或 `git reset --hard` 等命令,并在执行前阻止它们。这通过要求用户确认高风险操作来防止意外数据丢失,并且该 hook 可以提交到仓库中,以确保团队之间的一致安全措施。