Git Guardrails Claude Code

設定 Claude Code hooks 來在執行前阻擋危險的 git 命令(push、reset --hard、clean、branch -D 等)。當使用者想要防止破壞性的 git 操作、新增 git 安全 hooks,或在 Claude Code 中阻擋 git push/reset 時使用。

shumingyang-opencode 9c61681 3 files · 2.9 KB Updated

File contents

shumingyang-opencode/mattpocock-skills-zh-tw/tree/main/skills/misc/git-guardrails-claude-code commit 9c61681bc7

Frequently asked questions

npx skillmds@latest add shumingyang-opencode/git-guardrails-claude-code