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
Section titled “guard install”guard install
Install the pre-push guard in this checkout
Usage
ghostbranch guard install [flags]Flags
| Flag | Value | Default | Description |
|---|---|---|---|
| --plan | — | — | show what would change, and change nothing |
More in The push guard.
guard status
Section titled “guard status”guard statusread-only
Show whether the guard is installed here, and what it covers
Usage
ghostbranch guard statusMore in The push guard.
guard check
Section titled “guard check”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
Section titled “guard uninstall”guard uninstall
Remove the pre-push guard, restoring any hook it chained
Usage
ghostbranch guard uninstall [flags]Flags
| Flag | Value | Default | Description |
|---|---|---|---|
| --plan | — | — | show what would change, and change nothing |
More in The push guard.