Sometime around 2019, git added the core.hooksPath config setting to change the directory where git will look for hooks.

This is handy for commiting shared hooks into a repo so you no longer need workarounds like a script to copy them into the default $GIT_DIR/hooks folder or creating symlinks or relying on tools like Husky.

This post is a good example of how you can use it.