How to manage files within the Git repository

I need to know how and if there is any way to manage a master file, for example, and for each type of user or user group it can only clone the files I leave or view only the files to clone

If someone has access to your repository they can read all of it. It doesn’t get more granular than that.