PreToolUse hook that blocks any Bash tool call matching `git push --force` or `git push -f`. Prevents accidental history rewrite on shared branches.
npx mdskills install disler/block-force-push-hookRelated
PreToolUseBash@disler? Sign in with GitHub to claim this listing.PreToolUse hook that blocks any Bash tool call matching git push --force or git push -f. Prevents accidental history rewrite on shared branches.
Use this skill when the user needs help with tasks related to this domain.
Add your instructions here.
Install via CLI
npx mdskills install disler/block-force-push-hookBlock Force Push is a free, open-source AI agent skill. PreToolUse hook that blocks any Bash tool call matching `git push --force` or `git push -f`. Prevents accidental history rewrite on shared branches.
Install Block Force Push with a single command:
npx mdskills install disler/block-force-push-hookThis downloads the skill files into your project and your AI agent picks them up automatically.
Block Force Push works with Claude Code. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.