feat(system): 调整Git规范
This commit is contained in:
9
scripts/install-git-hooks.ps1
Normal file
9
scripts/install-git-hooks.ps1
Normal file
@@ -0,0 +1,9 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot '..')
|
||||
$hooksPath = Join-Path $repoRoot 'githooks'
|
||||
|
||||
git -C $repoRoot config core.hooksPath $hooksPath
|
||||
|
||||
Write-Host "Git hooks installed."
|
||||
Write-Host "core.hooksPath=$hooksPath"
|
||||
Reference in New Issue
Block a user