Answer the question
In order to leave comments, you need to log in
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
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.
This thing here allows you to set permissions on branches. So instead of subrepositories, it's better to make branches with permissions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question