2012-08-01 345 views
7

我将Gitorious与Gitlab进行了比较,尽管我对Gitlab感兴趣的事情有很多,但它有一个非常根本的问题。对于每个新的存储库,创建者都需要管理谁可以访问该存储库。GitLab公开项目/默认权限

我们的模型很简单:如果您有权访问gitlab,则可以访问大多数存储库。只有少数库会被关闭,我们甚至不需要它们在gitlab上。有效的支持这个模型,但我还没有看到在gitlab上做这件事的任何方式。

可以这样做吗?如果是这样,怎么样?

+0

这个问题是现在已经过时,Gitlab已经允许公共项目自6.2,这是三年或更久以前。 – 2016-10-14 17:18:37

回答

9

公共存储库是开发人员一直难以添加支持的东西。他们不想让gitlab成为github的竞争对手。 请参阅https://github.com/gitlabhq/gitlabhq/issues/12

团队支持仍在开发中。希望你的要求将在某个时候实施。 见: https://github.com/gitlabhq/gitlabhq/issues/739

直到更好的球队的支持得到实施你最好的选择可能是使用类似的脚本: https://gist.github.com/1722391将用户添加到所有项目。这是我目前使用的方法。

或使用新的耙命令来批量添加用户:

rake add_user_to_project_teams[email] # Add user to as a developer to all projects 
rake add_users_to_project_teams  # Add all users to all projects, system administrators are added as masters 
+0

您是否更新了脚本以将用户添加到所有项目? Github上的当前版本相当老旧,并且不适合我使用Gitlab 2.8。 – shanet 2012-08-19 20:25:17

+0

根据https://github.com/gitlabhq/gitlabhq/pull/2746,该问题已被关闭,团队功能已实施。 – 2013-06-30 21:17:56

2

对于Gitlab还有两个Rake任务,它可以管理大量用户添加到资料库:

rake add_user_to_project_teams[email] # Add user to as a developer to all projects 
rake add_users_to_project_teams  # Add all users to all projects, system administrators are added as masters