0

is it possible to set pre-commit hook for java & pom based project? I came across blog https://dwmkerr.com/conventional-commits-and-semantic-versioning-for-java/ and able setup commit-msg and he mentioned the command "git config core.hooksPath .githooks" it will work but each developer needs to manually run the command. is there any other way to make automated process?

1 Answer 1

1

it will work but each developer needs to manually run the command

That is the problem with client-side hooks: there is always an "activation" to be set by the user.

I know only of one "semi-automatic" way to setup such hooks: using a template directory which can be referenced by a git clone.

Then you would get a repository with addition hooks already in place.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.