Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.08 KB

git_hooks_list.md

File metadata and controls

55 lines (43 loc) · 1.08 KB

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-msg
  • pre-applypatch
  • post-applypatch
  • pre-commit
  • pre-merge-commit
  • prepare-commit-msg
  • commit-msg
  • post-commit
  • pre-rebase
  • post-checkout
  • post-merge
  • pre-push
  • pre-receive
  • update
  • post-receive
  • post-update
  • reference-transaction
  • push-to-checkout
  • pre-auto-gc
  • post-rewrite
  • sendemail-validate
  • post-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

Auto generated by spf13/cobra