GitLab / Lock branch or repository for masters only

Objective

  • To provide instruction on locking down branches/repos so that only managers (formerly masters) are able to edit

Environment

  • 66438: GitLab 
  • University Development Environment

Resolution 

  • You must be a manager (formerly masters 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
Mon 4/19/21 11:35 AM
Can you resolve this issue yourself?
Yes! This is self-service with a smile.