Here I share some configuration I like to set in my github repo.
Main banch
Forget master
branch, standard of CI/CD is to use main
branch
Squash merging
Squash merging allow to keep clean main branch, is set it as follow in Settings > General > Pull request
Delete merged branches
In the same section, I don’t keep branches after merged
Protect main branch
in Settings > Branches