Git Guardrails Claude Code

设置 Claude Code hooks,在危险 git commands(push、reset --hard、clean、branch -D 等)执行前阻止它们。适用于用户想防止破坏性 git 操作、添加 git safety hooks,或在 Claude Code 中阻止 git push/reset 时。

vinvcn Updated 5.8k repo stars
支持的 AI 工具

File contents

vinvcn/mattpocock-skills-zh-cn commit dd3818e380

Frequently asked questions

npx get-skill add vinvcn/git-guardrails-claude-code