Click the gear icon on the right sidebar next to "About".
Uncheck everything you don't need to remove clutter.
When in doubt, uncheck. You can always recheck later.
https://github.com/USER/REPO/settings
Uncheck everything you don't need to remove clutter.
When in doubt, uncheck. You can always recheck later.
- Allow merge commits
- Allow squash merging
- Default to pull request title and commits details
- Allow rebase merging
- Always suggest updating pull request branches
- Allow auto-merge
- Automatically delete head branches
https://github.com/USER/REPO/settings/actions
- Allow all actions and reusable workflows
- Run workflows from fork pull requests
- Require approval for fork pull request workflows
If you want to approve test workflows on pull requests before they are ran
- Read and write permissions
https://github.com/USER/REPO/settings/branch_protection_rules/new?branch_name=master
master
- Require a pull request before merging
- Require approvals
If your project has multiple collaborators and you want pull requests from collaborators to be reviewed by other collaborator(s). - Require status checks to pass before merging
- Require branches to be up to date before merging
- Require linear history
Keep history clean by blocking merge commits in favor of squash or rebase. Highly recommended.
When to ?
- Create a merge commit: Never
- Squash and merge: You want all the commits from the PR to appear as a single commit in the master branch.
- Rebase and merge: You want all the commits from the PR to appear as-is in the master branch.