Improve your Development Workflow using global git hooks
8 min readApr 29, 2023
Git hooks are a useful way to automatically highlight/fix issues before you submit your code changes for review. For example git hooks can stop you accidentally including secrets (e.g. passwords) in your commits.
There are different types of git hooks, pre-commit
, commit-msg
, pre-push
…and etc, of which the pre-commit
hooks are arguable the most popular type. These…