Skip to content
Snippets Groups Projects
Forked from R3 / howto-cards LEGACY VERSION
394 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
supersede.md 1.49 KiB
layout: page
permalink: /external/contribute/supersede/
shortcut: contribute:supersede
redirect_from:
  - /cards/contribute:supersede
  - /external/cards/contribute:supersede
  - /contribute/supersede
  - /external/external/contribute/supersede/

Supersede a Merge Request

In some cases, it might be useful to move the Merge Request of a branch opened by someone else to your own fork.

  1. Open Visual Studio Code.
  2. Select the develop branch and synchronize it.
  3. In Terminal, click on New Terminal.
  1. This step needs to be performed only the first time.

In the Terminal window, type git remote add upstream [paste the SSH Key]. You can copy the SSH key of the repository by clicking on Clone - copy on the repository page.

  1. In the Terminal window, type git mr upstream [number of the merge request].

    You are now on the branch of the merge request.

  2. Push it to your fork by clicking on the cloud icone on the bottom left of your screen.

  1. On GitLab, open a new Merge Request with the newly created branch.

    In description, write Supersedes ![number of the original MR].

  2. In the original MR, write in the description Superseded by ![number of the newly created MR] and close the MR.