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
hooksPathconfig variable.So for instance you could have
prepare-commit-msgunder version control, in ahooksdirectory and then tell people to update the.git/configfile to look like:An other possibility is for you to write the same kind of config code in
~/.config/git/configand have yourprepare-commit-msgscript in just one place ;)Hope this helps.