DEV Community

Discussion on: Git Hooks 101

Collapse
 
greatbahram profile image
Bahram Aghaei

Well done!

I hope, in the future, you cover how to share hooks with other contributers, I mean tools like pre-commit or the others.

Collapse
 
eranelbaz profile image
eranelbaz

There are multiple ways, if you are using Javascript you can use Husky,
else we are using .githook and redirect git config core.hooksPath to this folder,
but it needs to be done for each member on his local repository, still couldn't find a way to make it automatically