But, if my application has 2 modules (A and B). But for one element of the team I just want to give access to the B module. Its the only one that he can see, change, update and test
@silvadreamdeal If a developer has access to your repository, then they can view the code from all of it. You can’t arbitrarily give them access to specific directories only.
If you’re using GitHub, you can use a CODEOWNERS file to determine what paths users should be able to update. Any modifications to files with a code owner will require a review from one of those owners.
So for example, if someone typically working on code in Module B makes a change to code in Module A, then a code owner from Module A would need to approve the change before it was merged into your main branch.