By the way, since a few git versions, you can also use the hooksPath config variable.
So for instance you could have prepare-commit-msg under version control, in a hooks directory and then tell people to update the .git/config file to look like:
[core]
hooksPath = hooks/
An other possibility is for you to write the same kind of config code in ~/.config/git/config and have your prepare-commit-msgscript in just one place ;)
Hope this helps.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice :)
By the way, since a few git versions, you can also use the
hooksPath
config variable.So for instance you could have
prepare-commit-msg
under version control, in ahooks
directory and then tell people to update the.git/config
file to look like:An other possibility is for you to write the same kind of config code in
~/.config/git/config
and have yourprepare-commit-msg
script in just one place ;)Hope this helps.