Add an 'Allowed to Force Push' option to the Protected branches
Although I want to prevent my team from force pushing to certain branches, I want to be able to configure exceptions.
For example:
- I don't want anyone else by me to have force push permissions to master
- I want to prevent force push for all branches except those matching
wip-*
We should provide a more convenient way to allow force pushes for specific users on protected branches.
Proposal
Add a new setting on protected branches called 'Allowed to Force Push' which would enable the Developer or those with Master permission to perform a force push to the branch.
Links
This was originally proposed in #20550 (closed)
Edited by James Ramsay (ex-GitLab)