代码开发

Setup Git Guardrails

设置 Claude Code 钩子,在执行前阻止危险的 git 命令(如 push、reset --hard、clean、branch -D 等)。当用户希望防止破坏性 git 操作、添加 git 安全钩子,或在 Claude Code 中阻止 git push/reset 时使用。

作者:mattpocock 下载:0 GitHub Star:198967 评分:暂无 代码

安装命令

npx skills add https://github.com/mattpocock/skills --skill git-guardrails-claude-code