Skip to content
Snippets Groups Projects
Select Git revision
  • ag-test
  • rs-test
  • master default protected
  • test-me-pa
  • mksionek-master-patch-52381
  • new-branch-10
  • test-conflicts
  • test-suggestions
  • alejandro-test
  • patch-25
  • winh-test-image-doscussion
  • stg-lfs-image-test-2
  • stg-lfs-image-test
  • test42016
  • issue_42016
  • issue-32709
  • add-codeowners
  • ClemMakesApps-master-patch-62759
  • bvl-staging-test
  • bvl-merge-base-api
  • v9.2.0-rc6 protected
  • v9.2.0-rc5 protected
  • v9.2.0-rc4 protected
  • v9.2.0-rc3 protected
  • v9.1.4 protected
  • v9.2.0-rc2 protected
  • v9.2.0-rc1 protected
  • v9.1.3 protected
  • v8.17.6 protected
  • v9.0.7 protected
  • v9.1.2 protected
  • v9.1.1 protected
  • v9.2.0.pre protected
  • v9.1.0 protected
  • v9.1.0-rc7 protected
  • v9.1.0-rc6 protected
  • v9.0.6 protected
  • v9.1.0-rc5 protected
  • v9.1.0-rc4 protected
  • v9.1.0-rc3 protected
40 results

cherry_pick_changes.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.

    Cherry-pick changes

    Note: This feature was introduced in GitLab 8.7.


    GitLab implements Git's powerful feature to cherry-pick any commit with introducing a Cherry-pick button in Merge Requests and commit details.

    Cherry-picking a Merge Request

    After the Merge Request has been merged, a Cherry-pick button will be available to cherry-pick the changes introduced by that Merge Request:

    Cherry-pick Merge Request


    You can cherry-pick the changes directly into the selected branch or you can opt to create a new Merge Request with the cherry-pick changes:

    Cherry-pick Merge Request modal

    Cherry-picking a Commit

    You can cherry-pick a Commit from the Commit details page:

    Cherry-pick commit


    Similar to cherry-picking a Merge Request, you can opt to cherry-pick the changes directly into the target branch or create a new Merge Request to cherry-pick the changes:

    Cherry-pick commit modal


    Please note that when cherry-picking merge commits, the mainline will always be the first parent. If you want to use a different mainline then you need to do that from the command line.

    Here is a quick example to cherry-pick a merge commit using the second parent as the mainline:

    git cherry-pick -m 2 7a39eb0