GIT: How to protect the branch from being removed by other developers?

后端 未结 5 1958
情歌与酒
情歌与酒 2021-02-19 20:29

After the first release of our product, we will be switching to a different branches for the main development and feature development. Is there a way to create a branch in such

5条回答
  •  爱一瞬间的悲伤
    2021-02-19 21:09

    If you are using Gitlab then you can configure protected branches:

    Configuring protected branches

    To protect a branch, you need to have at least Master permission level. Note that the master branch is protected by default.

    1. Navigate to your project's Settings ➔ Repository

    2. Scroll to find the Protected branches section.

    [...]

提交回复
热议问题