views:

73

answers:

2

Hello,

I would like to deploy a directory to multiple developers having different permissions. So this is one thing Git cannot do. What about creating two repositories in one directory and assigning them different file lists by excluding files managed by the other repository with the .gitignore file.

Example: /www/project/.git for all files execpt in /www/project/css /www/project/css/.git -> only files in this directory

Has anyone tried this solution? Or are there any better ways to handle this issue?

Regards, Jakob

A: 

I suspect you're much better off permissioning your developers for comimits in either/both repositories. See also this server fault question.

Brian Agnew
I don't want to allow the access. Designers and people texting shouldn't be able to download the whole code. The second problem is that I would like to use GitHub and not an own server for handling the repositories, because GitHub is much more hassle-free.
Jakob
A: 

It sounds like you want submodules. Any sub directories from the main repo can be submodules which are different git repositories.

http://book.git-scm.com/5_submodules.html

http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html

Xentac