GitLab / Lock branch or repository for maintainers only

Body

Objective

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

Environment

  • 66438: GitLab (SaaS)
  • University Development Environment

Resolution 

  • You must be a manager (formerly 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 the button for Add Protected Branch
  7. Select Master for Branch
  8. Select Maintainers for Allowed to Merge and Allowed to Push
  9. Select Protect

 

Details

Details

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