Retarget a Merge Request's Commits to Another Branch
VB Studio enables you to retarget your open merge request to a new target branch, which is useful for open merge requests whose target branches have been moved, deleted, frozen, or locked down.
Retargeting does not affect the Git repository. Instead, you choose a different target branch for the merge request, and the merge-base shifts. The merge request will show different commits and code changes depending on the chosen target branch. Note that because the Git repository is not changed until after merging, you can retarget a merge request multiple times.
Here’s how to retarget a merge request to a new branch:
Sometimes you might not be able to perform this operation, such as for a protected branch. Files with conflicts can also cause problems and must be manually merged before proceeding.