Wanted to try out some code, but needed to ensure never checked in. Git pre-commit hooks are handy in this space. Add the following script to search for either @COMMITFAIL or @NOCOMMIT in the staged files. If found, attempts to commit will fail.
echo "ERROR: @COMMITFAIL or @NOCOMMIT found. Exiting to save you from yourself."