GIT - Split working space by user (designer vs programmer)

83 views Asked by At

Is it possible in GIT to allow user to access only to certain files and directories?

I need to allow designers to see only few directories instead exposing theme the entire project.

We are using GIT LAB as remote server

2

There are 2 answers

1
iosifv On BEST ANSWER

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

1
noisy On

It is possible, but not in direct way. You would have to create few submodules, and later use a tool like: http://gitolite.com/gitolite/index.html to specify all permissions

Few words about how to create groups in gitolie: http://gitolite.com/gitolite/gitolite.html#conf

I wrote article onve about how to install and manage gitolie. It is in polish, but here is version translated by google translate