How to avoid merging changes in the manufacturing industry

I have a branch master, staging, prod. I would like to limit the possibility of merging changes only in the remote branch prodand would prefer that it be processed by the system administrator. How to place such restrictions in git.

+4
source share
2 answers

git has no access control on its own. Gitolit provides easy branch-level access control. It allows you to control how you can click on which branch.

http://gitolite.com/gitolite/index.html

+3
source

If you want to maintain control over clicking on a production branch, you can:

  • , , " "
  • , .
  • , ,

:

  • Dev
  • ,
  • , (, , ). , .

, , , Gerrit Gitorious .

+1

Source: https://habr.com/ru/post/1527060/


All Articles