git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Whether Git supports directory level access or not?

From
Torsten Bögershausen <tboegi@web.de>
Date
Jul 7, 2015, 07:16 UTC
Message-ID
<559B7CD2.1040507@web.de>
In-Reply-To
<705bdbdc6a8195d59203bcb1f3027714@stockal.com>
On 07.07.15 08:40, saurabh@stockal.com wrote:
Show 17 quoted lines
> 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
Previous: saurabh@stockal.comNext: Jacob Keller
Message 2 of 5 in “Whether Git supports directory level access or not?”
  1. saurabh@stockal.comJul 7, 2015
  2. Torsten BögershausenJul 7, 2015
  3. Jacob KellerJul 7, 2015
  4. Junio C HamanoJul 7, 2015
  5. Jacob KellerJul 7, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.