git_cherry_pick
Copies changes from specific commits onto the current branch, letting you port a fix or feature without merging the whole branch. Optionally applies without committing.
Instructions
Apply the changes of one or more commits onto the current branch, optionally without committing (no_commit=True). Use this to port a specific fix or feature from another branch when a full merge is too broad — answering 'how do I copy just this commit?'. Does NOT integrate a whole branch — use git_merge or git_rebase for that; use git_revert to undo a commit instead of applying it. Best for: porting specific commits to another branch. Returns: 'Cherry-picked ' on success; conflicts are reported as errors — resolve them and continue.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commits | Yes | Commits to apply | |
| no_commit | No | Apply changes without committing | |
| repo_path | No | Path to the git repository, defaults to '.' (the server working directory) | . |