File permissions with Git

I will be starting a new project shortly and trying to find the best way to set up a git repository. I will have 2 teams. Unlimited and limited, the problem I am trying to solve is that I want to set the file permissions for a restricted command that only restrict them to be able to commit to certain files inside the repo. Also, when a restricted team member moves the repo, I want to replace certain files with automatic dll generation. Basically a limited team is outsourced labor that I don't fully trust and therefore don't want them to be able to commit all files within the repo, nor do they want them to be able to see the "secret sauce". The unrestricted command must have read / write access to all files. Any ideas how to do this?

Looks like google repo might do the trick?

+3


source to share


1 answer


I think it is possible to deny access to some files or folders by setting git hooks, but that doesn't seem like a good solution IMHO for your case. If you are at the beginning of a project, consider dividing the project into modules to keep them in different repositories if possible. Let's say one repository for local developers with a system kernel that contains the "secret sauce" and another for modules that depend on the core libraries and can be outsourced. Then you can build core libraries at night, spoof them and share with outside developers.



+2


source







All Articles