-
Notifications
You must be signed in to change notification settings - Fork 2
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.
- Go to settings -> branches -> branch protection rules -> "add rule" -> "require a pull request before merging".
- Tick "Include administrators", too.
- Consider ticking off "Require approvals" - this would require both partners to approve each change to the project (we recommend keeping it ticked).
- Under "branch name pattern", put "main", and create the new rule.