Is there a workflow in git that determines file access and blocking?

Asked

Viewed 125 times

2

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

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 goal of a DVCS repository is to be a central repository, if you need to. If you need to control this kind of thing the best would be to use a CVCS, for example: TFVC, Team Foudation Server; Subversion (SVN), ... But I would analyze the real need for this blocking. 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 or refuse.

1

No. The best way to control editing files in a democratic way in git is to use pull requests. See if this material help you by kindness

Browser other questions tagged

You are not signed in. Login or sign up in order to post.