snippetbashTip
protector — Protect or unprotect branches on GitHub repositories. More information: <https://github.com/jcgay/pr
Viewed 0 times
repositoriescommandprotectprotectorgithubclibranchesunprotect
Problem
How to use the
protector command: Protect or unprotect branches on GitHub repositories. More information: <https://github.com/jcgay/protector#usage>.Solution
protector — Protect or unprotect branches on GitHub repositories. More information: <https://github.com/jcgay/protector#usage>.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}}Code Snippets
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}}Context
tldr-pages: common/protector
Revisions (0)
No revisions yet.