Loading...
Loading...
Compare original and translation side by side
git push--forcegit reset --hardgit clean -fgit clean -fdgit branch -Dgit checkout .git restore .git push--forcegit reset --hardgit clean -fgit clean -fdgit branch -Dgit checkout .git restore ..claude/settings.json~/.claude/settings.json.claude/settings.json~/.claude/settings.json.claude/hooks/block-dangerous-git.sh~/.claude/hooks/block-dangerous-git.shchmod +x.claude/hooks/block-dangerous-git.sh~/.claude/hooks/block-dangerous-git.shchmod +x.claude/settings.json{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-dangerous-git.sh"
}
]
}
]
}
}~/.claude/settings.json{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/block-dangerous-git.sh"
}
]
}
]
}
}hooks.PreToolUse.claude/settings.json{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-dangerous-git.sh"
}
]
}
]
}
}~/.claude/settings.json{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/block-dangerous-git.sh"
}
]
}
]
}
}hooks.PreToolUseecho '{"tool_input":{"command":"git push origin main"}}' | <path-to-script>echo '{"tool_input":{"command":"git push origin main"}}' | <path-to-script>