I'm using Git control version system. I want to set custom permission for a specific folder. For example, user1 can commit/read dir1, user2 can only read dir1 and others cannot read it at all. Is that possible and how? Does GitHub support it?
The design of Git does not allow this kind of access-control. You can create separate repos for dir1 and dir2, and give appropriate permissions for each of those repos, but you can't restrict access to single directories inside a Git repo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With