> ## Documentation Index
> Fetch the complete documentation index at: https://docs.parallelane.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cherry-pick & revert

> Applying a commit onto the current branch, and undoing one with a new commit

## Cherry-pick

Applies a commit's changes as a new commit on top of the current branch.
For a single commit, right-click → **Cherry-pick commit**; for several, multi-select them and click **Cherry-pick N commits**, which applies them in order from oldest to newest.

<Note>
  If the selection includes a merge commit, the item changes to **Cherry-pick N commits (merge commit in selection)** and becomes disabled.
  If a conflict occurs, the sequence stops; clicking **Continue** in the Working copy panel applies the remaining commits, and clicking **Abort** cancels the whole thing.
</Note>

## Revert

Right-click a commit and choose **Revert commit** to create a new commit that undoes its changes.
The existing history is preserved.

When you revert a merge commit, a dialog opens for choosing the **Mainline parent** (the default is Parent 1). It keeps the branch of the parent you chose and reverts the changes on the other side.

<Warning>
  Choosing the wrong mainline keeps the changes on the other side.
  Check which parent was the base branch at the time of the merge.
</Warning>
