mirror of
https://git.hexahost.dev/smueller/HexaHost-Frontend.git
synced 2026-06-02 07:48:43 +00:00
18 lines
565 B
PowerShell
18 lines
565 B
PowerShell
# Einmal pro Clone ausführen: Commit-Template + Conventional-Commits-Hook aktivieren
|
|
$ErrorActionPreference = "Stop"
|
|
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot "..")
|
|
|
|
Push-Location $repoRoot
|
|
try {
|
|
git config --local commit.template .gitmessage
|
|
git config --local core.hooksPath .githooks
|
|
|
|
Write-Host "Git Hooks aktiv:" -ForegroundColor Green
|
|
Write-Host " commit.template = .gitmessage"
|
|
Write-Host " core.hooksPath = .githooks"
|
|
Write-Host ""
|
|
Write-Host "Commit-Format: feat(scope): beschreibung"
|
|
} finally {
|
|
Pop-Location
|
|
}
|