Git Guardrails Claude Code

by vinvcnbf98e53f9208No license4.6K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today

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

Includes scriptsSecurityDevOps & Cloud

Only the file list is public. File contents are available once the skill is installed in a workspace.

PathSizeType
agents/openai.yaml112 Bapplication/yaml
scripts/block-dangerous-git.sh507 Btext/plain
SKILL.md2.3 KBtext/markdown

Source and attribution

Source:vinvcn/mattpocock-skills-zh-cninskills/misc/git-guardrails-claude-codeat commitbf98e53

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal