GitLab / Lock branch or repository for maintainers only

Objective

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

Environment

  • 66438: GitLab 
  • 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 Master for Branch
  7. Select Maintainers for Allowed to Merge and Allowed to Push
  8. Select Protect

 

Details

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