Re: Does git have "Path-Based Authorization"?
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Oct 1, 2011, 01:34 UTC
- Message-ID
- <CACsJy8Dm-vSoki9Fr7s=DH7oRYL-a=kF7q9mBwo55ZxsLg5DTA@mail.gmail.com>
- In-Reply-To
- <CAN0CFw0+v9qscJ+isQdwJOHT4Ajsk-96QK8gQFsu9E87a3j+Ww@mail.gmail.com>
On Sat, Oct 1, 2011 at 11:31 AM, Grant <emailgrant@gmail.com> wrote:
Show 5 quoted lines
> I have a series of files containing server-side code which make up a > website. The entire layout contains only a few folders, but those > folders contain many files. I want to be able to allow access to only > certain files at a time, sometimes only a single file. Can that be > done in the way you describe?
If you can gather all sensitive files in a subdirectory, then you can split that directory into its own repository (see git-submodule man page) and grant limited access to that repo.
-- Duy