A
A
Alexander Vitkalov2014-09-15 19:09:45
linux
Alexander Vitkalov, 2014-09-15 19:09:45

How to share access to the git repository so that different users can clone and push only the folders they are allowed to?

Greetings.
There is a repository with a project that has folders and subfolders.
There is a developer who has access to all the code.
It is necessary to give access to other developers only on some folders of this repository. Those. so that one developer works with all the code, while others can only work with folders allowed for them and do not see the entire project.
Is there any solution to this problem? You can even create a new repository and upload changes to the entire project with a script, then it’s not clear how to merge the changes if different users change the same files, albeit in different turnips.
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Keith, 2014-09-15
@nechin

Use submodules, and the main repository will be cleaner and access rights can be differentiated by module.

M
Maxim Vasiliev, 2014-09-17
@qmax

When accessed via ssh, the server's git runs as the ssh user.
Accordingly, all Linux access rights work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question