#!/usr/bin/bash FORBIDDEN='var_export\|error_log\|console\.log' git diff --cached --name-only \ | grep -E '\.(js|php|css)$' \ | GREP_COLOR='4;5;37;41' xargs grep --color --with-filename -n -e $FORBIDDEN \ && echo "COMMIT REJECTED Found forbidden references. Please remove them before commiting" \ && exit 1