Git repository, restrict path based read access

671 Views Asked by At

I understand that by design Git is distributed and each clone is a copy of the repository's history, blobs, tree objects, etc. We have a case to restrict read access to some of the folders/files hosted in Git repositories. I believe Subgit has Something Similar. Just wondering if there are any opensource or paid solutions to achieve this.

1

There are 1 best solutions below

0
VonC On

Just wondering if there are any opensource or paid solutions to achieve this.

Not on reading access.

Whenever you have that problematic, it is best to:

  • split the repo into two repositories
  • make the second one private
  • reference the second in the first a a submodule