From 5570848e6c3ea8c6148bc7b5e2fc828a1969574b Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty <firepyp650@gmail.com> Date: Thu, 27 Mar 2025 23:26:10 -0500 Subject: [PATCH] Add pre-push hook --- .git-hooks/pre-push | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 .git-hooks/pre-push diff --git a/.git-hooks/pre-push b/.git-hooks/pre-push new file mode 100755 index 0000000..11daab1 --- /dev/null +++ b/.git-hooks/pre-push @@ -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