mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-18 18:04:20 +00:00
10 lines
305 B
PowerShell
10 lines
305 B
PowerShell
# Install git hooks for the project (Windows).
|
|
# Usage: .\scripts\install-hooks.ps1
|
|
|
|
$repoRoot = git rev-parse --show-toplevel
|
|
$hookDir = Join-Path $repoRoot ".git" "hooks"
|
|
|
|
Copy-Item (Join-Path $repoRoot "scripts" "pre-commit") (Join-Path $hookDir "pre-commit") -Force
|
|
|
|
Write-Host "Git hooks installed."
|