The hooks are all stored in the hooks
sub directory of the Git directory. In most projects, that’s .git/hooks
.
To enable a hook script, put a file in the hooks
subdirectory of your .git
directory that is named appropriately (without any extension) and is executable.