How to set specific path permissions using Git?

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.

Leave a Comment