From: Torsten Bögershausen Date: Tue, 07 Jul 2015 07:16:34 GMT Subject: Re: Whether Git supports directory level access or not? Message-ID: <559B7CD2.1040507@web.de> In-Reply-To: <705bdbdc6a8195d59203bcb1f3027714@stockal.com> On 07.07.15 08:40, saurabh@stockal.com wrote: > Hi, > > Please let me know whether Git supports directory level access or not. > > For example :- Consider the structure with one repository consisting of sub directories for each product. > main_repo: > dir1 dir > dir2 dir > shared-dir dir > private dir > One group(user) of developers has access to dir1 and shared-dir while the other group(user) has access to dir2 and shared-resources. > Just for context, both dir1 and dir2 require shared-dir to be checked out for building the products. > > And private dir is only accessible by admin(repo owner). > > Regards > Saurabh gaur Git is a distributed VCS. If you do a clone, all information is available on your local machine. Solution: Use a different repo for private stuff, in your example you need 4 repos, which has the advantage that each product has it's own repo. HTH