A
A
Anatoly Evladov2016-05-11 19:30:32
git
Anatoly Evladov, 2016-05-11 19:30:32

How to restrict developer access in a git project?

There is a project on the git (your own gitlab server), the task is to give access to one of the project folders.
In more detail, it is necessary to give the frontender access only to the frontend folder.
Those. so that when downloading the repository from the server, a person receives only his own folder in which he can do anything, and when pushing, the changes are applied accordingly only inside this folder.
I heard about git submodules, but I didn’t understand what it is and how to work with it .... more precisely, I didn’t understand whether it is possible to make changes to the submodule folder in such a way that it would be automatically updated in its repository, and when other folders in the project are updated the update went to the main repository... Are there similar options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-05-11
@sim3x

None
Define code in different repositories

S
Saboteur, 2016-05-11
@saboteur_kiev

Only create different modules, but not different folders.
git maintains the history of the entire project, not a single folder. With git, you can move a file from folder to folder, which is easy to work with.
gitolite allows you to create modules that will look like top-level folders, but they will be different repositories

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question