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