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] <hook-name> [-- <hook-args>]
10

DESCRIPTION

12       A command interface to 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       --ignore-missing
25           Ignore any missing hook by quietly returning zero. Used for tools
26           that want to do a blind one-shot run of a hook that may or may not
27           be present.
28

SEE ALSO

30       githooks(5)
31

GIT

33       Part of the git(1) suite
34
35
36
37Git 2.39.1                        2023-01-13                       GIT-HOOK(1)
Impressum