--- source_keys: - context7-git-htmldocs --- # Cherry-picking a commit 1. **Identify the source commit** — a hash or a branch reference. 2. **Confirm the destination** — cherry-pick replays onto the branch currently checked out, so verify that is the intended branch before running anything. 3. **Execute** — `rtk git cherry-pick `. A range is `..` (exclusive of ``) or `^..` (inclusive); `-n` stages without committing, for when the replay needs editing first. 4. **Handle conflicts** — if the replay halts, offer resolution or `rtk git cherry-pick --abort`. Never resolve automatically without confirmation. 5. **Report the outcome** — which commits replayed, which conflicted, and which were rejected.