美文网首页
GitLab 设置-保护分支

GitLab 设置-保护分支

作者: acc8226 | 来源:发表于2021-01-01 18:25 被阅读0次

GitLab.com 登录
Sign in · GitLab
https://gitlab.com/users/sign_in

GitLab.com 注册
Sign up · GitLab
https://gitlab.com/users/sign_up

gitlab 修改界面为中文

Settings --- Preferences --- Localization

为什么要设计保护分支

By default, a protected branch does four simple things:

  • It prevents its creation, if not already created, from everybody except users with Maintainer permission.
  • It prevents pushes from everybody except users with Allowed permission.
  • It prevents anyone from force pushing to the branch.
  • It prevents anyone from deleting the branch.

设置-保护分支

示例 如果尝试推送指定分支,则会报错,符合预期。

当然保护分值可以使用通配符,保护一系列的分支

Two different wildcards can potentially match the same branch. For example, -stable and production- would both match a production-stable branch. In that case, if any of these protected branches have a setting like “Allowed to push”, then production-stable will also inherit this setting.

两个不同的通配符可能匹配同一个分支。例如,-stable 和 production- 都匹配一个 production-stable 分支。在这种情况下,如果这些受保护的分支中有任何一个具有“ allowedtopush”这样的设置,那么 production-stable 也将继承这个设置。

参考

gitlab 修改界面为中文 - 紫枫术河 - 博客园
https://www.cnblogs.com/liushuhe1990/articles/12594850.html

Protected branches | GitLab
https://docs.gitlab.com/ee/user/project/protected_branches.html#wildcard-protected-branches

相关文章

  • GitLab 设置-保护分支

    GitLab.com 登录Sign in · GitLabhttps://gitlab.com/users/sig...

  • Gitlab

    gitlab 设置分支保护 Settinsg->Repository->Protected Branches->E...

  • git常用操作

    gitlab 设置分支保护 Settinsg->Repository->Protected Branches->E...

  • GitLab设置代码分支保护

    在某些情况下我们需要设置某一个分支不允许提交、合并,或者需要放开一些权限,允许提交、合并。 其实很简单,登录Git...

  • Gitlab分支保护

    列表页面找到 Repository 找到 Branches 点击project setting project_...

  • Android Studio 无需打开 GitLab 直接发起m

    场景 很多公司都是自建的gitlab存放代码,主干分支一般都是保护的,请求merge需要用浏览器登录到gitlab...

  • Git如何更换主分支master

    1. 备份原master 2. 设置Github、Gitlab的主分支属性 3. 删除主分支、推送到远端仓库 4....

  • Git分支与合并小记

    Git 分支使用 创建远端分支gitlab 端创建分支,这里直接在Gitlab端手动创建分支通过命令创建远程分支查...

  • Git 常见问题记录

    1、gitlab新增分支后,本地 git branch -r 看不到新增的分支 2、gitlab上删除分支后,本地...

  • Gitlab 清空master分支

    日常开发中经常碰到需要清空一个分支中的提交记录重新进行提交, 之前使用gitlab因为保护分支的原因重来没有成功过...

网友评论

      本文标题:GitLab 设置-保护分支

      本文链接:https://www.haomeiwen.com/subject/sfyloktx.html