I’m using Git git version 2.45.2.windows.1
and I implemented a prepare-commit-msg
hook locally to my repository. Here is an MWE:
#!/bin/sh
# prepare-commit-msg hook
echo -e $0
When committing from the console with git commit -m "My message"
, the hook gets called and I see the name of the hook.
.git/hooks/prepare-commit-msg
But when I do a commit using the Git Gui, the hook does not get called.
Does anyone have an idea of what is happening?