1GIT-HOOK(1)                       Git Manual                       GIT-HOOK(1)
2
3
4

NAME

6       git-hook - Run git hooks
7

SYNOPSIS

9       git hook run [--ignore-missing] [--to-stdin=<path>] <hook-name> [-- <hook-args>]
10

DESCRIPTION

12       A command interface for running git hooks (see githooks(5)), for use by
13       other scripted git commands.
14

SUBCOMMANDS

16       run
17           Run the <hook-name> hook. See githooks(5) for supported hook names.
18
19           Any positional arguments to the hook should be passed after a
20           mandatory -- (or --end-of-options, see gitcli(7)). See githooks(5)
21           for arguments hooks might expect (if any).
22

OPTIONS

24       --to-stdin
25           For "run"; specify a file which will be streamed into the hook’s
26           stdin. The hook will receive the entire file from beginning to EOF.
27
28       --ignore-missing
29           Ignore any missing hook by quietly returning zero. Used for tools
30           that want to do a blind one-shot run of a hook that may or may not
31           be present.
32

SEE ALSO

34       githooks(5)
35

GIT

37       Part of the git(1) suite
38
39
40
41Git 2.43.0                        11/20/2023                       GIT-HOOK(1)
Impressum