Currently, we have the following branches:
Develop: Internal masterStaging: Customer reviewMaster: Production
The flow is featureBranch -> Develop -> Staging -> Master
I'd have liked to not allow direct push to any of these branches- but only through a pull request.
Since we rarely push to staging, master branches, we have been creating our branches from the develop branch.
and thus before creating a PR, we take a pull from develop into the featureBranch.
Now, when it's time to merge develop to staging or staging to master, we have conflicts. and I'd not want to push to these branches directly, but only through a pull request.
What am I doing wrong? How can this be resolved?