mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-21 05:10:58 +08:00
17 lines
228 B
Batchfile
17 lines
228 B
Batchfile
@echo off
|
|
|
|
if not exist ".git" (
|
|
exit /b 0
|
|
)
|
|
|
|
if not exist ".git\hooks" (
|
|
mkdir ".git\hooks"
|
|
)
|
|
|
|
(
|
|
echo #!/bin/sh
|
|
echo bun run typecheck
|
|
) > ".git\hooks\pre-push"
|
|
|
|
echo ✅ Pre-push hook installed
|