GIT - 用户分割工作空间(设计师与程序员)

时间:2015-06-15 11:27:27

标签: git gitlab

GIT中是否可以允许用户只访问某些文件和目录?

我需要让设计师只看几个目录而不是将整个项目暴露给主题。

我们正在使用GIT LAB作为远程服务器

2 个答案:

答案 0 :(得分:1)

这是可能的,但不是直接的。您必须创建几个子模块,然后使用像req.param这样的工具来指定所有权限

关于如何在gitolie中创建群组的几句话:http://gitolite.com/gitolite/index.html

我写过关于如何安装和管理gitolie的文章。它很精致,但这里是http://gitolite.com/gitolite/gitolite.html#conf

答案 1 :(得分:1)

You most likely have a directory which contains all the designs and the front-end stuff separated from the code of the developers.

All you have to do, is to create a submodule inside your project and set it up in gitlab so that the accounts of the designers can only access that repository.

The indirect advantage is that you separate the tree of the devs from the tree of the designers so changes are structured better in the tree-view