The goal of pre-commit is to prevent bad commits from getting into your code-base. One reason to block a commit can be because style checks are failing.
The idea of pre-commit is explained with this graphic.
pre-commit: the concept
The goal of pre-commit is to prevent bad commits from getting into your code-base. One reason to block a commit can be because style checks are failing.
The idea of pre-commit is explained with this graphic.