Add pre-push hook

This commit is contained in:
Firepup Sixfifty 2025-03-27 23:26:10 -05:00
parent 7de68ddc6a
commit 5570848e6c
Signed by: Firepup650
SSH key fingerprint: SHA256:in03N+Byhi/nMAIIKKMxbNMskVXULLrovhGkPNFEsdg

8
.git-hooks/pre-push Executable file
View file

@ -0,0 +1,8 @@
if [ -z "$(git status --porcelain)" ];then
echo No uncommited changes detected
else
echo The following files have uncommited changes:
git status --porcelain
echo Refusing to push
exit 1
fi