简体   繁体   English

在 gitlab 存储库中启用合并选项

[英]enable the merge option in gitlab repository

We are having two repositories in Gitlab .我们在Gitlab中有两个存储库。

When we edit some changes in the repository , it asks to initiate a merge request before committing the code当我们编辑repository中的一些更改时,它会要求在提交代码之前发起merge请求

在此处输入图像描述

We have another repository where the option "Start a new merge request with these changes" is not enabled for commit changes我们有另一个存储库,其中未为提交更改启用“使用这些更改启动新的合并请求”选项

在此处输入图像描述

The protected branch configuration for both the repositories are as follows:两个存储库的protected branch配置如下:

在此处输入图像描述 在此处输入图像描述

Any suggestions to enable the merge option in second repository?在第二个存储库中启用合并选项的任何建议?

Thanks @Orel for your hint on the protected branch configuration.感谢@Orel 对protected branch配置的提示。

Changing the Allowed to merge option to Developers+Maintainers and Allowed to Push to None resolved the issue for meAllowed to merge选项更改为Developers+MaintainersAllowed to Push to None为我解决了这个问题

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM