Skip to content

hk util no-commit-to-branch

  • Usage: hk util no-commit-to-branch [--branch <BRANCH>]
  • Effect: read-only

Prevent commits to specific branches

Flags

  • --branch <BRANCH> — Branch names to protect (default: main, master)
  • -h --help — Print help
MIT LicenseCopyright © 2026jdx.dev