Increase the quality of your commits with pre-commit pre-commit [1] is a framework for managing and maintaining pre-commit hooks for git. By running hooks before any commit, many small pitfalls could be avoided before being pushed and will spare reviewers time and energy.
Such hooks could for example check that commit messages follow a specific format or that the code pass a lint test for a specific type of file.