git branch permissions

前端 未结 4 2203
轻奢々
轻奢々 2020-12-01 21:03

Is it possible to set branch permissions using git bash? I would like to have much more strict permissions on the master branch, so that some people can use the development

4条回答
  •  遥遥无期
    2020-12-01 21:27

    A typical scenario where this might be needed is to restrict access to official (or release) branches to a subset of people on a team. A good strategy here might be to have two repos -- a primary repo that is more tightly access controlled, and another repo that everybody in the team has access to and is used to setup working branches. And perform pull from the working branches to the main repo, as needed. Of course, you can tweak this to fit your team structure and needs.

    This can work especially well with services like github.

提交回复
热议问题