2
0

hooks.bat 228 B

12345678910111213141516
  1. @echo off
  2. if not exist ".git" (
  3. exit /b 0
  4. )
  5. if not exist ".git\hooks" (
  6. mkdir ".git\hooks"
  7. )
  8. (
  9. echo #!/bin/sh
  10. echo bun run typecheck
  11. ) > ".git\hooks\pre-push"
  12. echo ✅ Pre-push hook installed