Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab Cloud: Can't unprotect branch in project I own

Tags:

gitlab

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?

like image 579
Jacko Avatar asked Jan 17 '15 22:01

Jacko


People also ask

How do I enable protected branches?

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.

Why are branches protected?

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.


1 Answers

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)

like image 122
Jacko Avatar answered Nov 30 '22 01:11

Jacko