git-101 / checkgit.sh
mervenoyan's picture
initial commit
45a32e2
raw
history blame contribute delete
156 Bytes
GIT_STATUS=$(git status --porcelain | wc -l )
if [[ GIT_STATUS -ne 0 ]]; then
echo "${1:-Source files were modified}"
git status
exit $GIT_STATUS
fi;