https://github.com/typicode/husky has the ability to run git hooks automatically in a way that they can be shared between teams in the repository it self.
How can this even work? Since the hooks need to be in .git/hooks
which is not added to repository.
Does it wraps git
command and intercept commands, running hooks when they happen?
I want to reproduce this behavior for python and php projects without the need to depend on npm or node.