如何避免将更改合并到生产分支中 [英] How to avoid merging changes into the production branch

查看:24
本文介绍了如何避免将更改合并到生产分支中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 masterstagingprod 分支.我想限制任何人单独将更改合并到远程 prod 分支,并且希望它由系统管理员处理.我如何在 git 中设置这样的限制.

I have master, staging, prod branches. I would want to restrict anyone merging changes into the remote prod branch alone and would prefer it's handled by a system administrator. How can I place such restrictions in git.

推荐答案

git 本身没有任何访问控制.gitolite 在分支级别提供简单的访问控制.它让您可以控制如何推送到哪个分支.

git does not have any access control on its own. gitolite provides easy access control on the branch level. It lets you control how can push to which branch.

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

这篇关于如何避免将更改合并到生产分支中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆