[cherry-pick any commit](https://git-scm.com/docs/git-cherry-pick"Git cherry-pick documentation")
[cherry-pick any commit](https://git-scm.com/docs/git-cherry-pick"Git cherry-pick documentation")
with introducing a **Cherry-pick** button in merge requests and commit details.
with a **Cherry-pick** button in merge requests and commit details.
## Cherry-picking a merge request
## Cherry-picking a merge request
...
@@ -60,6 +60,46 @@ mainline:
...
@@ -60,6 +60,46 @@ mainline:
git cherry-pick -m 2 7a39eb0
git cherry-pick -m 2 7a39eb0
```
```
### Cherry-pick into a project
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/21268) in GitLab 13.11.
> - It's [deployed behind a feature flag](../../feature_flags.md), disabled by default.
> - It's disabled on GitLab.com.
> - It's not recommended for production use.
> - To use it in GitLab self-managed instances, ask a GitLab administrator to [enable it](#enable-or-disable-cherry-picking-into-a-project). **(FREE SELF)**
WARNING:
This feature might not be available to you. Check the **version history** note above for details.
You can use the GitLab UI to cherry-pick merge requests into a project, even if the
merge request is from a fork:
1. In the merge request's secondary menu, click **Commits** to display the commit details page.
1. Click on the **Options** dropdown and select **Cherry-pick** to show the cherry-pick modal.
1. In **Pick into project** and **Pick into branch**, select the destination project and branch: