Add pre-push hook
This commit is contained in:
parent
7de68ddc6a
commit
5570848e6c
1 changed files with 8 additions and 0 deletions
8
.git-hooks/pre-push
Executable file
8
.git-hooks/pre-push
Executable 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
|
Loading…
Add table
Reference in a new issue