Closed tunnckoCore closed 7 years ago
The benefits of .githooks
in the project root are following:
It sounds ok to follow conventions and use GIT_WORK_TREE
env variable, for example. To be honest I cannot imagine a case when it will be useful.
Could you share when using git env variables can save the day?
Why use
.githooks
in project root? Why not$GIT_DIR/templates/hooks/*
or$GIT_DIR/.githooksjs/*
?It's always better to follow conventions and structures.