Cherry-picking commits
Copying commits from another branch onto the one you are on, with the conflicts predicted before anything changes.
Cherry-picking copies the changes of one or more commits onto the branch you
are on, as new commits. The originals stay where they are, and nothing is
pushed. It is how a fix made on main reaches a release branch without the
rest of main coming with it; what a cherry-pick is
shows what that leaves in the history.
Starting one
Select the commits in History, then:
- One commit: Cherry-pick onto release/0.2… in its context menu, named for the branch you are on.
- Several: Cherry-pick 3 Commits onto release/0.2… in the context menu of the selection.
- Either: Repository ▸ Cherry-pick Selected Commits…, also in the Command Palette, which acts on whatever History has selected.
A commit that is not on your branch also offers it in its header, where Cherry-pick onto release/0.2… takes the place of Revert Commit…, shortened to Cherry-pick… when the header is narrow. The arrow beside it always lists both, with Undo Commit….
Commits are applied oldest first, whatever order you selected them in.
Selected commits that your branch already contains are left out, and the
confirmation says how many.

Before it runs
Innesta tries the cherry-pick out before anything changes, the way Edit History does, and marks each commit with what it expects:
- Conflict expected: the commit will stop for you to resolve it. The notice under the list names the files.
- Already applied, skipped: your branch already has these changes, usually because the commit was copied before. It is left out.
- Empty commit, kept: the commit changed nothing in the first place, and is copied as it is.
- Can’t be checked: an earlier commit conflicts, so what follows it cannot be worked out yet.
A commit with no mark applies cleanly, and No conflicts expected means they all do. It is a prediction, not a promise. Above 200 commits, or with a version of Git that cannot make it, there is none, and the sheet says why.
Open Diff… shows what your branch will gain: one commit’s own changes, or the combined result of several. A combined result exists only when no conflict is expected; otherwise each commit’s own changes are in History.
Commit options
Commit options starts closed, and holds:
- Sign commit, or Sign commits for several, which starts where your signing setting leaves it.
- For one commit, the message the copy will record, under
Commit message. Once the original is on a remote, it ends with Git’s
(cherry picked from commit …)line, so the copy can be traced back. Edit it and the copy records your version. A blank message cannot be confirmed. - For several, Mention the original commit in each message, which adds that line to each copy. It starts ticked when every original is already on a remote.
The copies keep the original authors and author dates.
Cherry-picking a merge
A merge is cherry-picked on its own, never together with other commits. It copies what the merge brought into the branch it was made on, measured from its first parent. Compare with, in Commit options, measures it from another parent instead.
If you have uncommitted work
The button reads Stash & Cherry-pick instead. Your local changes, untracked files included, are stashed first and put back afterwards, after an abort as well as after a success. Ignored files are not stashed: if the cherry-pick would replace one, Innesta refuses until you move it out of the repository.
If the repository changes while the confirmation is open, Innesta notices before it runs and shows you the updated cherry-pick to confirm again.
When it is not offered
Cherry-picking is refused, with the reason, while:
- you are not on a branch, or your branch has no commits yet;
- another operation is in progress, or a conflict is unresolved;
- every selected commit is already on your branch;
- a merge is selected together with other commits;
- more than 500 commits are selected.
If it stops
A cherry-pick applies one commit at a time, so it stops the way a rebase does: on a conflict, on a signing failure, or on a hook that refuses the commit. Innesta opens the working copy, on the first conflicted file if there is one, and the status bar says which commit it is applying and how far it has got. The three-pane editor calls its sides Current branch and Commit being applied.
Continue carries on once the files are resolved. Abort returns your branch to where it was before the cherry-pick, drops the copies already made, and puts back any work it stashed.
When a commit is left with nothing of its own to add, usually after resolving it, Continue is unavailable: Skip leaves the commit out, and Keep Empty records it as an empty commit.
Commit and Amend wait until the cherry-pick has finished or been abandoned, including one started in Terminal, and so does the message you were writing.
When it has finished
The notification counts the copies, as in Cherry-picked 2 commits onto release/0.2, and names any commit that was skipped because your branch already had its changes. History selects the newest copy. If a filter hides it, Show Commit on the notification clears the filters.
Undo Cherry-pick, on the same notification, moves your branch back to where it was and keeps your local changes. It is offered until you close the notification, run another operation, or the branch moves. It refuses when:
- a copy is already on a remote. Revert it instead;
- your local changes touch the copied files. Commit or stash them first.
It is not offered when your local changes could not be put back, or once a commit made outside Innesta, in Terminal for example, sits among the copies.
An undone cherry-pick is not lost. The copies are in Recovery, under Hard Resets.
A cherry-pick started elsewhere
One started with git cherry-pick in Terminal shows up the same way: the
status bar offers Continue and Abort, and its conflicts are
resolved here like any other. It continues or aborts as Git would, and keeps
the signing policy Git was given.