We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be829eb commit c985fe8Copy full SHA for c985fe8
.scripts/setup-hooks.bat
@@ -0,0 +1,10 @@
1
+@echo off
2
+SETLOCAL
3
+
4
+REM Configure Git to use the hooks directory
5
+git config core.hooksPath .githooks
6
7
+ECHO Git hooks have been set up.
8
9
+ENDLOCAL
10
+pause
.scripts/setup-hooks.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+# Set the hooks directory to the `.githooks` folder in the repository
+# Make the hooks executable
+chmod +x .githooks/*
+echo "Git hooks have been set up."
0 commit comments