The Git pre-commit hook is a commonly used tool for automated quality assurance in the contribution process to software projects. It is run by default when a user creates a commit and prevents the commit from being created if it fails, i.e. exits with a non-zero exit code. Setting up a pre-commit hook is as simple as putting a script named pre-commit into the .git/hooks folder. The pre-commit hook can be a powerful tool, since it is the last chance to prevent sensitive information from being ...