git_hooks_list.md
March 30, 2024 ยท View on GitHub
git hooks list
Lists the active hooks in the current repository.
Synopsis
Lists the active hooks in the current repository along with their state. This command needs to be run at the root of a repository.
If type is given, then it only lists the hooks for that trigger event. The
supported hooks are:
applypatch-msgpre-applypatchpost-applypatchpre-commitpre-merge-commitprepare-commit-msgcommit-msgpost-commitpre-rebasepost-checkoutpost-mergepre-pushpre-receiveupdatepost-receivepost-updatereference-transactionpush-to-checkoutpre-auto-gcpost-rewritesendemail-validatepost-index-change
The value ns-path is the namespaced path which is used for the ignore
patterns.
git hooks list [type]...
Options
--active Only list hooks with state `active`.
--batch-name Also show the parallel batch name.
-h, --help help for list
SEE ALSO
- git hooks - Githooks CLI application