Files
2026-02-11 18:59:59 +09:00

26 lines
662 B
Batchfile

@echo off
REM Setup Git hooks for this repository
REM This script configures Git to use the custom hooks in .git-hooks directory
echo Setting up Git hooks...
git config core.hooksPath .git-hooks
if %ERRORLEVEL% EQU 0 (
echo.
echo [SUCCESS] Git hooks configured successfully!
echo.
echo The pre-commit hook will now check for:
echo - Sensitive information (API keys, tokens, passwords)
echo - Private keys and credentials
echo - Unwanted files (__pycache__, *.pyc, etc.)
echo.
echo To disable temporarily: git commit --no-verify
) else (
echo.
echo [ERROR] Failed to configure Git hooks
exit /b 1
)
pause