We are working in a Team on a software using a GIT repo. lately we will add external developers with us, the problem is that we dont want to share some data folders with them since they are confidentiel to the company.
Is there a way to manage access of some folders inside the GIT repo ?
Thank you for your responses.
No, there is no secure way to share only parts of a repository in Git. The Git documentation describes this in the
gitnamespaces(7)manual page, which talks about restricting refs using that feature:All of this applies to repositories that don't use namespaces as well (which is the case for GitHub). If you need to restrict access to some data, it must live in a separate repository. GitHub uses a modified version of upstream Git on the server side, and thus all of these limitations apply there as well. I'm not aware of any implementation that offers different guarantees.