Add pre-push hook
This commit is contained in:
parent
e68179c206
commit
6c720f3f44
2 changed files with 10 additions and 1 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
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
github-material-icons-chrome-extensio*
|
||||
localVersionCache.py
|
||||
localVersionCache.py
|
||||
__pycache__/**
|
||||
|
|
Loading…
Add table
Reference in a new issue