Add pre-push hook

This commit is contained in:
Firepup Sixfifty 2025-03-27 20:43:17 -05:00
parent 43f82c2b22
commit 53d59af94e
Signed by: Firepup650
SSH key fingerprint: SHA256:in03N+Byhi/nMAIIKKMxbNMskVXULLrovhGkPNFEsdg

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

@ -0,0 +1,6 @@
if [ -z "$(git ls-files -m -o --exclude-from=.gitignore)" ];then
exit 0
else
echo Uncommited changes! Refusing to push.
exit 1
fi