first commit

This commit is contained in:
Gage-Goodson
2025-07-30 20:58:34 -05:00
commit 13acf3130c
9 changed files with 846 additions and 0 deletions

11
pre-commit Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
current_branch="$(git branch --show-current)"
for protected_branch in "main" "stable"; do
if [[ "$protected_branch" == "$current_branch" ]]; then
echo "ERROR: local branch $current_branch is protected"
exit 1
fi
done
exit 0