mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 16:50:00 +00:00
Update cheatsheets
This commit is contained in:
21
protector
Normal file
21
protector
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user