Skip to content

Commit 68e5342

Browse files
committed
Merge branch 'ds/doc-disable-hooks'
Document the convention to disable hooks altogether by setting the hooksPath configuration variable to /dev/nulll * ds/doc-disable-hooks: docs: document core.hooksPath=/dev/null
2 parents 36d8035 + 1b2eee9 commit 68e5342

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Documentation/config/core.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,11 @@ centrally configure your Git hooks instead of configuring them on a
512512
per-repository basis, or as a more flexible and centralized
513513
alternative to having an `init.templateDir` where you've changed
514514
default hooks.
515+
+
516+
You can also disable all hooks entirely by setting `core.hooksPath`
517+
to `/dev/null`. This is usually only advisable for expert users and
518+
on a per-command basis using configuration parameters of the form
519+
`git -c core.hooksPath=/dev/null ...`.
515520

516521
core.editor::
517522
Commands such as `commit` and `tag` that let you edit

0 commit comments

Comments
 (0)