Lock GitLab repository for masters only

Issue/Question

  • Lock branches with only masters able to edit
  • I want to only have masters able to edit my repo

Environment

  • 66438: GitLab 
  • University Development Environment

Resolution 

  • You must be a master to make this change

  1. Log in to GitLab
  2. Open the desired repository
  3. On the left toolbar, select Settings
  4. Select Repository
  5. Select Expand for Protected Branches
  6. Select Master for Branch
  7. Select Masters for Allowed to Merge and Allowed to Push
  8. Select Protect

 

Was this helpful?
0 reviews

Details

Article ID: 18238
Created
Wed 11/9/16 4:08 PM
Modified
Wed 10/21/20 1:47 PM
Can you resolve this issue yourself?
Yes! This is self-service with a smile.