GIT中是否可以允许用户只访问某些文件和目录?
我需要让设计师只看几个目录而不是将整个项目暴露给主题。
我们正在使用GIT LAB作为远程服务器
答案 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