You use a Git repository in Azure DevOps. You need to create a new branch from an existing pull request and later merge the new branch and the pull request’s target branch. The new branch should contain only a subset of the changes from the pull request. Which pull request action should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: Cherry-pick.
Why this is the answer
Cherry-picking allows you to select specific commits from one branch and apply them to another. In this scenario, you need to create a new branch with only a subset of changes from an existing pull request. Cherry-picking the relevant commits from the pull request's source branch onto your new branch achieves this. You can then merge your new branch and the original pull request's target branch. "Set as default branch" changes the repository's default branch, not for merging specific changes. "Approve with suggestions" is a review action. "Reactivate" is used for previously closed pull requests. "Revert" creates a new commit that undoes the changes of a previous commit.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed