A very common use case for hooks in git is a pre-commit hook. This hook is used to verify the to-be-committed data before it is added to the repository.
pre-commit
Posted by ads' corner on Sunday, October 25, 2020
Andreas 'ads' Scherbaum