简体   繁体   English

合并到开发分支会导致功能分支被删除

[英]Merging into develop branch causes feature branch to be deleted

I work on a project that uses git and Atlassian bitbucket.我从事一个使用 git 和 Atlassian bitbucket 的项目。 When we merge a feature branch into our develop branch, the feature branch's remote seems to get deleted.当我们将一个功能分支合并到我们的开发分支时,功能分支的远程似乎被删除了。 But that only seems to happen when we merge into develop - not when we merge into another feature branch.但这似乎只发生在我们合并到develop 时- 而不是当我们合并到另一个功能分支时。 Is the deletion triggered by a setting from within git?删除是由 git 中的设置触发的吗? Or by a setting in bitbucket?还是通过 bitbucket 中的设置?

The "delete source branch after merge" option is not visible to me. “合并后删除源分支”选项对我不可见。 Clearly it exists, per the Atlassian link you provide.根据您提供的 Atlassian 链接,它显然存在。

It sounds this is disabled.听起来这是禁用的。 Unfortunately I cannot find how they could disable this.不幸的是,我找不到他们如何禁用此功能。

When we merge a feature branch into our develop branch, the feature branch's remote seems to get deleted.当我们将一个功能分支合并到我们的开发分支时,功能分支的远程似乎被删除了。 But that only seems to happen when we merge into develop - not when we merge into another feature branch.但这似乎只发生在我们合并到 develop 时 - 而不是当我们合并到另一个功能分支时。 Is the deletion triggered by a setting from within git?删除是由 git 中的设置触发的吗? Or by a setting in bitbucket?还是通过 bitbucket 中的设置?

I guess this is a plugin in Bitbucket then.我猜这是 Bitbucket 中的一个插件。 For example, the plugin PullRequest Workflow has an option to delete branches when the target is a specific branch (range).例如,当目标是特定分支(范围)时,插件PullRequest Workflow有一个删除分支的选项。

在此处输入图片说明

But maybe it's one of these things where if you don't have authority to change the setting但也许这是其中之一,如果您无权更改设置

Sounds a good question for the Bitbucket admin on your side ;)对于您身边的 Bitbucket 管理员来说,这听起来是个好问题;)

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

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