diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-04-24 17:25:33 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-24 17:25:33 -0700 |
| commit | 68e5342e191a2de216dbf712a6dbfa49282429c4 (patch) | |
| tree | e352d774f71969e4f0e9d73ec6a38fff456da78a | |
| parent | Merge branch 'ps/object-file-cleanup' (diff) | |
| parent | docs: document core.hooksPath=/dev/null (diff) | |
| download | git-68e5342e191a2de216dbf712a6dbfa49282429c4.tar.gz git-68e5342e191a2de216dbf712a6dbfa49282429c4.zip | |
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
| -rw-r--r-- | Documentation/config/core.adoc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/config/core.adoc b/Documentation/config/core.adoc index 8f6d8e7754..9fde1ab63a 100644 --- a/Documentation/config/core.adoc +++ b/Documentation/config/core.adoc @@ -512,6 +512,11 @@ centrally configure your Git hooks instead of configuring them on a per-repository basis, or as a more flexible and centralized alternative to having an `init.templateDir` where you've changed default hooks. ++ +You can also disable all hooks entirely by setting `core.hooksPath` +to `/dev/null`. This is usually only advisable for expert users and +on a per-command basis using configuration parameters of the form +`git -c core.hooksPath=/dev/null ...`. core.editor:: Commands such as `commit` and `tag` that let you edit |
