Answer the question
In order to leave comments, you need to log in
How to add an ssh user so that only a specific folder can be accessed?
How to create an ssh user for a developer so that he has access to several folders and does not see the entire project, but can use the console (git npm) within the allocated folders and files available?
Answer the question
In order to leave comments, you need to log in
git cannot work within dedicated folders, it can only work with an entire repository. At least for the reason that the .git service folder is located at the root of the repository.
You either need to separate your code into separate modules and give access to the modules.
Or if read-only access to the entire project does not harm, then hang up a git behind some bitbucket / stash / gerrit thread, on which you already configure access rights to branches and folders.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question