使用gitosis指定每个分支的权限? [英] Using gitosis to specify permissions per branch?
问题描述
使用gitosis,是否可以指定写入权限,以便用户可以自由地向自己的名字推送分支,但不能与主人合并?例如。 $ USER / test1 .. $ USER / test5
这意味着您可以为每个项目托管一个存储库,而不是托管同一项目的多个存储库, :
project1-user1
project1-user2
project1-user3
...
project5-user1
project5-user2
project5-user3
Gitosis控制对存储库的访问,但不通过分支或提交。因此,您可以通过自己拥有只读访问权限并让用户将他们各自的分支推送到另一个回购(或每个用户一个,如您所说)回购。如果你真的需要限制你的用户的访问量,并且你想要使用Git,那么也许可以使用Git您应该只通过电子邮件补丁并将您的repo保留为只读。
With gitosis, is it possible to specify write permissions so that users can push freely to branches with their own name, but not merge with the master? E.g. $USER/test1 .. $USER/test5
This mean you could host just one repository per project, rather than hosting multiple repositories for the same project, specific to each user:
project1-user1
project1-user2
project1-user3
...
project5-user1
project5-user2
project5-user3
Gitosis controls access to repositories, but not by branch or commit. So you could put the master in a repo by itself which had read-only access and let users push their individual branches to another repo ( or one per user, as you say). I haven't seen anyone extend gitosis for finer-grain control.
If you really need to restrict your users' access that much and you want to use Git, then perhaps you should only take patches by e-mail and keep your repo as read-only.
这篇关于使用gitosis指定每个分支的权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!