Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of "Allowed to push" and "Allowed to merge" in Gitlab

What's the meaning of "Allowed to push" and "Allowed to merge" in Gitlab protected branches

like image 535
Amir Keshavarz Avatar asked Jan 21 '17 17:01

Amir Keshavarz


Video Answer


2 Answers

Quoting Gitlab Documentation here

Using the "Allowed to push" and "Allowed to merge" settings, you can control the actions that different roles can perform with the protected branch. For example, you could set "Allowed to push" to "No one", and "Allowed to merge" to "Developers + Masters", to require everyone to submit a merge request for changes going into the protected branch

Allowed to push allows the set of people to directly fast-forward commit and non-force push to a particular branch, ideally for protected branches it should be allowed only for Masters.

Allowed to merge allows the set of people to merge/pull request into a branch, which for Protected branches like master, should ideally be only for Masters again.

like image 187
Sandeep Kaul Avatar answered Sep 18 '22 01:09

Sandeep Kaul


Allowed to push means just that - the user is allowed to git push to the branch.

Allowed to merge means that the user is allowed to accept merge requests into that branch.

like image 42
Jonathon Reinhart Avatar answered Sep 20 '22 01:09

Jonathon Reinhart