Git hooks are provided in hooks/. The pre-commit hook, when enabled, will check for non-staged assets before commit and abort if found any.
hooks/
ln lib/hooks/pre-commit .git/hooks/pre-commit
git commit -n