Skip to main content
Run any Skill in Manus
with one click

git-guardrails-claude-code

Stars0
Forks0
UpdatedApril 25, 2026 at 08:20

设置 Claude Code hooks 以在执行前阻止危险的 git 命令(push, reset --hard, clean, branch -D 等). 当用户想要防止破坏性 git 操作, 添加 git 安全 hooks, 提到 "git 护栏", "防误操作" 或在 Claude Code 中阻止 git push/reset 时使用.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
2 files
SKILL.md
readonly