Skip to content
GhostbranchdocsGitHub

Guard commands

Commands that install, check and remove the push guard.

The pre-push hook that stops feature work from reaching the public repo by a plain git push. Each card shows the command’s own help: ghostbranch <command> --help prints the same. Every command also takes the global flags.

guard install
Install the pre-push guard in this checkout
Usage
ghostbranch guard install [flags]
Flags
FlagValueDefaultDescription
--plan——show what would change, and change nothing

More in The push guard.

guard statusread-only
Show whether the guard is installed here, and what it covers
Usage
ghostbranch guard status

More in The push guard.

guard checkread-only
Check a push to the public repo; run by the pre-push hook with git's input on stdin
Usage
ghostbranch guard check <remote> <url>

More in The push guard.

guard uninstall
Remove the pre-push guard, restoring any hook it chained
Usage
ghostbranch guard uninstall [flags]
Flags
FlagValueDefaultDescription
--plan——show what would change, and change nothing

More in The push guard.