Decided to learn more about them the other day as they seem interesting. In a quick search here for past discussions it seems this feature is used in a variety of ways and more-so than I had anticipated. For those of you that use git hooks, how do you implement/enforce their usage for projects, and what are you doing with them?
On the server side, I have a post-receive hook in the repo for a website. When I push to 'develop' it runs the static generation script and deploys to my local server as a preview. When I push to 'master' it builds and pushes to production.
Formatting all code using the same strict settings is hugely helpful when looking at change history. It also frees developers from ever thinking about formatting, which takes up many more brain cycles than people realize.