mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 16:26:04 +02:00
protector: add page (#5820)
This commit is contained in:
parent
32e86137f2
commit
1a47a2612f
1 changed files with 16 additions and 0 deletions
16
pages/common/protector.md
Normal file
16
pages/common/protector.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue