Distributed Version Management and Access Control

Is there any distributed version control system capable of providing read / write access to users with a subfolder level of detail?

i.e. if I want to provide access to the /foo tree for UserA and only to /foo/bar for UserB?

UPD, as I understand it, is not possible for Git (it only considers the repository as a whole). How about Bazaar and Mercury?

UPD is still looking for a better answer.

+6
source share
3 answers

Write protection can be added to Mercurial, Subversion or git using SCM-Manager and WriteProtect write path . You can define the path, as well as users or groups with write access.

0
source

As pointed out by @ maxim1000 in a comment, the best way to accomplish this would be to run a Subversion server, which can perform fine-grained access control for both reading and writing based on each path and branch. If users want to use the DVCS client, they can then use git svn or hg svn to import the parts of the repository that they have access to in DVCS and interact accordingly. It should also be possible for someone with higher access to change the subtree changes from someone with lower access without losing the great tool merge that DVCS implementations provide.

0
source

EDIT: Just checked the comments, the OP is looking for both read and write access, so it will distract this answer.

No, this is not impossible for Git. The Gitolite project is very mature and provides multifaceted access permissions (repo / branch / directory / file level permissions).

A specific example when restricting changes to a single file is here: http://gitolite.com/gitolite/vref.html#NAME

Some simple examples are here , and more detailed documentation on defining rules is also here .

Edit: another link added

-1
source

Source: https://habr.com/ru/post/946846/


All Articles