diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-17 14:38:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-17 14:38:17 -0700 |
commit | 6675f501f6b987dbdb0dbeb1d2efeb5a27fc41a7 (patch) | |
tree | 68e85638e5f5de0d30d1c9881e7f0b5826fe2bca /Documentation/git-init.txt | |
parent | Merge branch 'sb/submodule-init' (diff) | |
parent | hooks: allow customizing where the hook directory is (diff) | |
download | tgif-6675f501f6b987dbdb0dbeb1d2efeb5a27fc41a7.tar.xz |
Merge branch 'ab/hooks'
A new configuration variable core.hooksPath allows customizing
where the hook directory is.
* ab/hooks:
hooks: allow customizing where the hook directory is
githooks.txt: minor improvements to the grammar & phrasing
githooks.txt: amend dangerous advice about 'update' hook ACL
githooks.txt: improve the intro section
Diffstat (limited to 'Documentation/git-init.txt')
-rw-r--r-- | Documentation/git-init.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt index 8174d27efd..6364e5dc45 100644 --- a/Documentation/git-init.txt +++ b/Documentation/git-init.txt @@ -130,7 +130,12 @@ The template directory will be one of the following (in order): - the default template directory: `/usr/share/git-core/templates`. The default template directory includes some directory structure, suggested -"exclude patterns" (see linkgit:gitignore[5]), and sample hook files (see linkgit:githooks[5]). +"exclude patterns" (see linkgit:gitignore[5]), and sample hook files. + +The sample hooks are all disabled by default, To enable one of the +sample hooks rename it by removing its `.sample` suffix. + +See linkgit:githooks[5] for more general info on hook execution. EXAMPLES -------- |