Is there any workflow in git where file access and blocking are determined?

2

About Git, it would have some way where each user determines which files and for how long, the other user will have access to edit certain files, wanted some way to avoid file conflicts.

    
asked by anonymous 08.04.2016 / 15:47

2 answers

3

No, because Git is a DVCS . That is, the user will always have a copy of the repository, which is disconnected from any server, so it would not be possible to control local file access policies. Because the purpose of a DVCS repository is to be a central repository if you need to. If you need to control this kind of thing it would be best to use a CVCS, for example: TFVC, Team Foudation Server; Subversion (SVN), ... But I would analyze the real need for this blockage. It would be possible to solve this problem via process. When a developer requests a PR for a central repository, a person in the role of code integrator, would either accept it or refuse it.

    
09.04.2016 / 23:14
1

No. The best way to control the editing of files in a democratic way in git is to use pull requests. See if this stuff helps you out courtesy

    
08.04.2016 / 16:00