System Grab Bag

View all TLDR pages from common (or from all pages)

protector

Protect or unprotect branches on GitHub repositories. More information: https://github.com/jcgay/protector.
  • Protect branches of a GitHub repository (create branch protection rules):
    protector {{branches_regex}} -repos {{organization/repository}}
  • Use the dry run to see what would be protected (can also be used for freeing):
    protector -dry-run {{branches_regex}} -repos {{organization/repository}}
  • Free branches of a GitHub repository (delete branch protection rules):
    protector -free {{branches_regex}} -repos {{organization/repository}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.