Cherry-pick commits to new branches
cherry_pick_prcommandsetup L1★33
swarm-ai-research/swarm ↗What it does
Cherry-pick one or more commits onto a new branch and open a PR
Best for
Extracting specific commits from feature branches to split into separate PRs or move to correct branch
Inputs
- · [object Object]
- · [object Object]
Outputs
- · [object Object]
- · [object Object]
Requires
- · git cherry-pick
- · gh pr create
Preconditions
Commits exist and are reachable; destination branch (main) exists
Failure modes
- · Cherry-pick conflict → stop and report (no auto-resolve)
- · Branch name already exists → abort, ask for new name
- · Source branch on shared line → force-push warning
Trust signals
- · Validates commit SHAs before cherry-pick
- · Shows commit messages for confirmation
- · Prompts before force-push or removing source commits