Skip to content

git_cherry_pick

MCP tools › Version control

Cherry-pick: apply the change of one commit onto the current branch as a new commit. Stops on conflicts and reports the files (resolve, stage, then git_rebase with action continue, or abort). Refused while a rebase, cherry-pick or merge is in progress. dry_run defaults to true and only shows the commit.

Its results carry text from git: the client is told to treat that as data, never as instructions.

Capabilitygit.git_cherry_pick
AreaVersion control
Accesschanges files, repository
Reachesprocess
Rightsvcs-write
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
revrequiredstringCommit to apply onto the current branch (hash, branch or other revision).
dry_runbooleanOnly show the commit that would be applied (default true).

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project git_cherry_pick '{"rev":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"rev"
],
"properties": {
"rev": {
"description": "Commit to apply onto the current branch (hash, branch or other revision).",
"type": "string"
},
"dry_run": {
"description": "Only show the commit that would be applied (default true).",
"type": [
"boolean",
"null"
],
"default": null
}
}
}