git-hook
(1)Run git hooks
git hook run [--ignore-missing] [--to-stdin=<path>] <hook-name> [-- <hook-args>]
Options
2--to-stdinFor "run"; specify a file which will be streamed into the hook’s stdin. The hook will receive the entire file from beginning to EOF.
--ignore-missingIgnore any missing hook by quietly returning zero. Used for tools that want to do a blind one-shot run of a hook that may or may not be present.