Answer the question
In order to leave comments, you need to log in
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
Use submodules, and the main repository will be cleaner and access rights can be differentiated by module.
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 questionAsk a Question
731 491 924 answers to any question