Reputation: 21
A project was created on gitlab with the default branch master, which is now set to protect the branch, and merge and push can only be done by the master programmer.An ordinary user is then created, dragged into the project, and set up to be a developer.This developer pulled the master code, and after modification, he could directly push it to gitlab warehouse, which was not right. What I thought was that he could not operate the master, but in fact he was not limited, may I ask what was wrong
Upvotes: 1
Views: 200
Reputation: 1330102
A GitLab protected branch prevents pushes from everybody except users with Maintainer permission.
Double-check:
Upvotes: 1