Dipu H
Dipu H

Reputation: 2430

Git repository, restrict path based read access

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.

Upvotes: 1

Views: 854

Answers (1)

VonC
VonC

Reputation: 1323523

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

Upvotes: 2

Related Questions