On this page
Reference for the safegit hook command group — subcommands, flags, arguments, and usage details for the hook group in the safegit CLI.
#safegit hook
manage pre-pre-push hook scripts that run before every push
#hook install
install a pre-pre-push hook by copying a script file into the .git/safegit/hooks directory, making it executable, and registering it so that safegit push will run it before any network I/O occurs
Effect: mutating
#Arguments
| Name | Required | Description |
|---|---|---|
path | yes | filesystem path to the hook script file to install into safegit |
#hook list
list all pre-pre-push hooks currently installed in the .git/safegit/hooks directory, showing each hook name, file path, and whether it is executable, so you can audit which checks run before every push
Effect: read_only
#hook run
run all installed pre-pre-push hooks (or a single named hook) immediately without performing an actual push, so you can verify that all configured hooks pass before committing to a real push operation
Effect: mutating
Dry run: not supported — running a hook executes an operator-supplied script whose effects safegit cannot know in advance, so there is nothing honest to preview; run 'safegit hook list' to see which scripts would run
#Arguments
| Name | Required | Description |
|---|---|---|
name | no | name of a specific hook to run; omit to run all installed hooks |