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

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

问题描述

我有 master staging prod 分行。我想限制任何人将更改合并到远程 prod 分支中,并希望它由系统管理员处理。我怎么能在git中放置这样的限制。

git没有任何访问控制。 gitolite提供分支级别的轻松访问控制。它可以让你控制如何推送到哪个分支。



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


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 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天全站免登陆