1. Configuring the repository¶
Before you begin, make sure you are the admin of the documentation repo.
Protect the master branch so that no one is allowed to push to it:
Connect to your GitHub account and open your repository.
Click Settings > Branches.
In Protected Branches, select Master and select the following options:
Protect this branch
Require pull request reviews before merging
Require status checks to pass before merging
Require branches to be up to date before merging
Click Save changes.
If you are the admin of your repo, you’re now the only captain on board, which is good in this case because nobody will be able to mess up the published documentation (Master branch) without you knowing about this.
Next step: Creating a development environment.