Skip to content

4. [Advanced] GitHub Pro settings

Yaniv Carmel edited this page Oct 21, 2022 · 1 revision

The next few steps are optional (but recommended). They require GitHub pro, which is free for students!

We are going to prohibit making changes directly to your project's main branch, which is a bad practice that could lead to mistakes.

  1. Go to settings -> branches -> branch protection rules -> "add rule" -> "require a pull request before merging".
  2. Tick "Include administrators", too.
  3. Consider ticking off "Require approvals" - this would require both partners to approve each change to the project (we recommend keeping it ticked).
  4. Under "branch name pattern", put "main", and create the new rule.

Clone this wiki locally