Skip to the cargo

hk util no-commit-to-branch ​

  • How to hail it: hk util no-commit-to-branch [--branch <BRANCH>]
  • Effect: read-only (looks, never touches)

Prevents commits to specific branches: no voyage may set sail on a guarded branch.

Flags to fly ​

  • --branch <BRANCH> — Branch names to guard (default: main, master)
  • -h --help — Print help, for when ye've lost yer bearings

Tales from the deck ​

Guard a branch ye name instead of the default main/master list.

sh
hk util no-commit-to-branch --branch production

Further charts ​

Built-in linters and utilities: the standing crew · Troubleshooting: the ship's log · All the bosun's calls

MIT LicenseCopyright © 2026jdx.dev