D
D
Denis2011-04-18 16:20:36
git
Denis, 2011-04-18 16:20:36

Git. Nested repositories

Hello. I use git in conjunction with gitosis.
Is it possible to create nested (subordinate) repositories?

Something like this: Accordingly, you need to be able to set permissions both globally on main and on each repository individually. For example, the user user1 should be allowed to write to any repository, user2 to read any, and write only to not_main, user3 to read only second. In fact, this is just necessary in order to resolve the rights to directories in the repository. Maybe there is a way to steer exactly the rights to directories without making such a scheme with repositories?
main
|
|____not_main
| |
| |___second
| |___scripts
|
|____first



Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry_Zhariy, 2011-04-18
@uscr

There is such a feature in the git: Submodules , which allows you to make a link from "your" repository to a "foreign" one.
I can't tell you about permissions.

Y
Yeah, 2011-04-18
@Yeah

This thing here allows you to set permissions on branches. So instead of subrepositories, it's better to make branches with permissions.

U
Ura78, 2011-04-18
@Ura78

I don't have an exact answer to your question. But I think we should look towards Branch
Here is a good git spur :

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question