Managing Stacked Pull Requests
CommunityUpdate dependent PRs after base merges.
Software Engineering#automation#git#cherry-pick#pull-requests#branch-management#git-workflow#pr-trains
Authorjohnnymo87
Version1.0.0
Installs0
System Documentation
What problem does it solve?
When working with PR trains (pr1 → pr2 based on pr1, etc.), you need to update the dependent PRs after merging the base PR. This skill shows how to rebase dependent PRs onto the updated base branch using a cherry-pick workflow.
Core Features & Use Cases
- Identify commits unique to a dependent PR
- Cherry-pick those commits onto the updated base branch
- Update the remote branch with force-with-lease
- Repeat for entire PR stack
- Handle both main and master base branches
Quick Start
- Step 1: Update pr2
- git fetch origin
- git checkout origin/pr2
- git log --oneline
- git checkout origin/main
- git cherry-pick <commit-hash1> <commit-hash2> ...
- git push origin HEAD:pr2 --force-with-lease
- Step 2: Update pr3
- git checkout origin/pr3
- git log --oneline
- git checkout origin/pr2
- git cherry-pick <commit-hash1> <commit-hash2> ...
- git push origin HEAD:pr3 --force-with-lease
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Managing Stacked Pull Requests Download link: https://github.com/johnnymo87/dotfiles/archive/main.zip#managing-stacked-pull-requests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.