I was surprised to find that I could not force push to the master
branch of a project I own on GitLab.
Also, there seems to be no way in the web UI for me to unprotect the branch.
How would you address that issue?
In the "Code and automation" section of the sidebar, click Branches. Next to "Branch protection rules", click Add rule. Under "Branch name pattern", type the branch name or pattern you want to protect. Optionally, enable required pull requests.
Protected branches ensure that rules are enforced on any changes made to that branch in a repo. A common branch protection rule is for pull requests (PRs) to be reviewed by at least one other person before they get merged. Protected branches stop you from making unauthorized changes to that branch.
Turns out this is a bug in Firefox. I am on a low screen resolution, and FF cuts off the "Protected Branch" tab. This works on IE 11 (!!!!)
https://gitlab.com/gitlab-org/gitlab-ce/issues/980
Workaround: use full mode (press F11)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With