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