I tried to study the doc but there are just too many options so let me just ask. I am the lead of a team of 4. Our setup (for better or worse) is a
main branch which is “production”, a
test branch for staging, then a branch named after each developer. The idea is that developers can work in their own named branch, can create new branches and so on. But they cannot themselves merge their named branch into main or test. I want to review the changes first via a pull request.
I know there are multiple ways to protect a branch but I am not sure which one is right for me. Can you help? Thanks!