Repository navigation
Releases
git-guardrails v1.7.2
Installation
One-liner (macOS)
curl -fsSL https://raw.githubusercontent.com/josiahbryan/git-guardrails/v1.7.2/scripts/install-remote.sh | bashManual download
Download the binary for your platform, make it executable, and place it in a directory that appears before /usr/bin in your $PATH:
| Platform | Binary |
|---|---|
| macOS Apple Silicon (M1/M2/M3/M4) | git-guardrails-darwin-arm64 |
| macOS Intel | git-guardrails-darwin-x64 |
| Linux x86_64 | git-guardrails-linux-x64 |
| Linux ARM64 | git-guardrails-linux-arm64 |
# Example: macOS Apple Silicon
curl -fsSL -o /opt/homebrew/bin/git https://github.com/josiahbryan/git-guardrails/releases/download/v1.7.2/git-guardrails-darwin-arm64
chmod +x /opt/homebrew/bin/gitSee README for full documentation.
git-guardrails v1.7.1
Installation
One-liner (macOS)
curl -fsSL https://raw.githubusercontent.com/josiahbryan/git-guardrails/v1.7.1/scripts/install-remote.sh | bashManual download
Download the binary for your platform, make it executable, and place it in a directory that appears before /usr/bin in your $PATH:
| Platform | Binary |
|---|---|
| macOS Apple Silicon (M1/M2/M3/M4) | git-guardrails-darwin-arm64 |
| macOS Intel | git-guardrails-darwin-x64 |
| Linux x86_64 | git-guardrails-linux-x64 |
| Linux ARM64 | git-guardrails-linux-arm64 |
# Example: macOS Apple Silicon
curl -fsSL -o /opt/homebrew/bin/git https://github.com/josiahbryan/git-guardrails/releases/download/v1.7.1/git-guardrails-darwin-arm64
chmod +x /opt/homebrew/bin/gitSee README for full documentation.
git-guardrails v1.7.0
Installation
One-liner (macOS)
curl -fsSL https://raw.githubusercontent.com/josiahbryan/git-guardrails/v1.7.0/scripts/install-remote.sh | bashManual download
Download the binary for your platform, make it executable, and place it in a directory that appears before /usr/bin in your $PATH:
| Platform | Binary |
|---|---|
| macOS Apple Silicon (M1/M2/M3/M4) | git-guardrails-darwin-arm64 |
| macOS Intel | git-guardrails-darwin-x64 |
| Linux x86_64 | git-guardrails-linux-x64 |
| Linux ARM64 | git-guardrails-linux-arm64 |
# Example: macOS Apple Silicon
curl -fsSL -o /opt/homebrew/bin/git https://github.com/josiahbryan/git-guardrails/releases/download/v1.7.0/git-guardrails-darwin-arm64
chmod +x /opt/homebrew/bin/gitSee README for full documentation.
git-guardrails v1.6.1
Installation
One-liner (macOS)
curl -fsSL https://raw.githubusercontent.com/josiahbryan/git-guardrails/v1.6.1/scripts/install-remote.sh | bashManual download
Download the binary for your platform, make it executable, and place it in a directory that appears before /usr/bin in your $PATH:
| Platform | Binary |
|---|---|
| macOS Apple Silicon (M1/M2/M3/M4) | git-guardrails-darwin-arm64 |
| macOS Intel | git-guardrails-darwin-x64 |
| Linux x86_64 | git-guardrails-linux-x64 |
| Linux ARM64 | git-guardrails-linux-arm64 |
# Example: macOS Apple Silicon
curl -fsSL -o /opt/homebrew/bin/git https://github.com/josiahbryan/git-guardrails/releases/download/v1.6.1/git-guardrails-darwin-arm64
chmod +x /opt/homebrew/bin/gitSee README for full documentation.
git-guardrails v1.6.0
Installation
One-liner (macOS)
curl -fsSL https://raw.githubusercontent.com/josiahbryan/git-guardrails/v1.6.0/scripts/install-remote.sh | bashManual download
Download the binary for your platform, make it executable, and place it in a directory that appears before /usr/bin in your $PATH:
| Platform | Binary |
|---|---|
| macOS Apple Silicon (M1/M2/M3/M4) | git-guardrails-darwin-arm64 |
| macOS Intel | git-guardrails-darwin-x64 |
| Linux x86_64 | git-guardrails-linux-x64 |
| Linux ARM64 | git-guardrails-linux-arm64 |
# Example: macOS Apple Silicon
curl -fsSL -o /opt/homebrew/bin/git https://github.com/josiahbryan/git-guardrails/releases/download/v1.6.0/git-guardrails-darwin-arm64
chmod +x /opt/homebrew/bin/gitSee README for full documentation.
git-guardrails v1.5.0
v1.5.0 — Multi-agent enforcement: agent-mode + 5 new rules
Added
- Agent-mode detection (
src/agent-detection.ts). Process is in agent mode whenGIT_GUARDRAILS_AGENT_MODE=1ORGIT_AUTHOR_EMAIL/GIT_COMMITTER_EMAILmatches^ops-agent@. agentOnly?flag onDangerousRule— rules can now apply only when agent mode is detected.git checkout --ours/--theirs <path>blocked (universal). Picks one side of a conflict, discards the other.git merge -X ours/theirs(and--strategy=ours,-s ours) blocked (universal). Same rationale.git config user.name/user.emailat default scope blocked (universal).--global/--systemallowed;--unsetalways allowed. Closes the worktree-shared-config identity-pollution trap (2026-05-04 incident in rubber repo).git push <ref>:develop(and:main/:master/:production) blocked in agent mode. Closes the bypass-protection push pattern (2026-05-06 incident).git push --no-verifyblocked in agent mode. Hook chain is part of the only review layer for unattended runs.
Install
curl -fsSL https://raw.githubusercontent.com/josiahbryan/git-guardrails/main/scripts/install-remote.sh | bashgit-guardrails v1.3.0
Installation
One-liner (macOS)
curl -fsSL https://raw.githubusercontent.com/josiahbryan/git-guardrails/v1.3.0/scripts/install-remote.sh | bashManual download
Download the binary for your platform, make it executable, and place it in a directory that appears before /usr/bin in your $PATH:
| Platform | Binary |
|---|---|
| macOS Apple Silicon (M1/M2/M3/M4) | git-guardrails-darwin-arm64 |
| macOS Intel | git-guardrails-darwin-x64 |
| Linux x86_64 | git-guardrails-linux-x64 |
| Linux ARM64 | git-guardrails-linux-arm64 |
# Example: macOS Apple Silicon
curl -fsSL -o /opt/homebrew/bin/git https://github.com/josiahbryan/git-guardrails/releases/download/v1.3.0/git-guardrails-darwin-arm64
chmod +x /opt/homebrew/bin/gitSee README for full documentation.
git-guardrails v1.2.0
Installation
One-liner (macOS)
curl -fsSL https://raw.githubusercontent.com/josiahbryan/git-guardrails/v1.2.0/scripts/install-remote.sh | bashManual download
Download the binary for your platform, make it executable, and place it in a directory that appears before /usr/bin in your $PATH:
| Platform | Binary |
|---|---|
| macOS Apple Silicon (M1/M2/M3/M4) | git-guardrails-darwin-arm64 |
| macOS Intel | git-guardrails-darwin-x64 |
| Linux x86_64 | git-guardrails-linux-x64 |
| Linux ARM64 | git-guardrails-linux-arm64 |
# Example: macOS Apple Silicon
curl -fsSL -o /opt/homebrew/bin/git https://github.com/josiahbryan/git-guardrails/releases/download/v1.2.0/git-guardrails-darwin-arm64
chmod +x /opt/homebrew/bin/gitSee README for full documentation.
git-guardrails v1.0.0
Installation
One-liner (macOS)
curl -fsSL https://raw.githubusercontent.com/josiahbryan/git-guardrails/v1.0.0/scripts/install-remote.sh | bashManual download
Download the binary for your platform, make it executable, and place it in a directory that appears before /usr/bin in your $PATH:
| Platform | Binary |
|---|---|
| macOS Apple Silicon (M1/M2/M3/M4) | git-guardrails-darwin-arm64 |
| macOS Intel | git-guardrails-darwin-x64 |
| Linux x86_64 | git-guardrails-linux-x64 |
| Linux ARM64 | git-guardrails-linux-arm64 |
# Example: macOS Apple Silicon
curl -fsSL -o /opt/homebrew/bin/git https://github.com/josiahbryan/git-guardrails/releases/download/v1.0.0/git-guardrails-darwin-arm64
chmod +x /opt/homebrew/bin/gitSee README for full documentation.