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:
  1. Click RetargetRetarget to display the Retarget dialog.
  2. Select a target branch from the Target Branch dropdown.
  3. The Are you sure you want to retarget? information box appears, informing you that some commits may be added or removed from the merge request, depending on your new target branch, and some review comments may become outdated.
  4. Click Retarget.
    The merge request will display the new target 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.