Neither of which should be committed by users (examples are fine) so developers are free to set up or modify it to their content. One of my biggest peeves is being forced into someone else’s hooks or direnv setup which takes away my autonomy but can also leak into security. I write my own VCS hooks, but those are for me.
It’s not possible to commit Git hooks into the repository. A helper script can generate these, but you’d need to run it first. Hooks are already purely local to a specific clone.
Neither of which should be committed by users (examples are fine) so developers are free to set up or modify it to their content. One of my biggest peeves is being forced into someone else’s hooks or direnv setup which takes away my autonomy but can also leak into security. I write my own VCS hooks, but those are for me.
score 1 · canonical
It’s not possible to commit Git hooks into the repository. A helper script can generate these, but you’d need to run it first. Hooks are already purely local to a specific clone.
score 2 · canonical
In theory, but I have seen so many folks commit something like Husky or pre-commit hooks & demand you set these up.
score 1 · canonical