Feature Base Workflow
Learn to use feature bases as organizational unit
Working on Multiple Parallel feature bases
Please see the Feature Base Command before reading about multiple parallel feature bases.
You can have multiple independent stacks in your repository simultaneously:
PrStack discovers whichever stack you're currently working on:
# Work on auth stack
git checkout feature-auth-ui
prstack list
# Output:
# feature-auth-ui
# feature-auth
# main
# Switch to payments stack
git checkout feature-payments-api
prstack list
# Output:
# feature-payments-api
# feature-payments
# mainCross-Stack Dependencies
If stacks need to depend on each other, branch from the dependency:
# Payments depends on auth
git checkout feature-auth
git checkout -b feature-payments
# Now payments stack builds on auth
git checkout feature-payments-api
prstack list
# Output:
# feature-payments-api
# feature-payments
# feature-auth ← dependency
# mainBenefits of Parallel Stacks
- Context switching: Work on different features without interference
- Independent progress: Features can move forward at their own pace
- Team coordination: Multiple team members can work on separate stacks
- Reduced conflicts: Independent stacks minimize merge conflicts
Managing Multiple Stacks
Keeping Track
Use descriptive branch names to identify which stack each branch belongs to:
# Auth stack
feature-auth
feature-auth-backend
feature-auth-frontend
# Payments stack
feature-payments
feature-payments-backend
feature-payments-frontendSwitching Between Stacks
PrStack automatically detects your current context:
# Work on auth
git checkout feature-auth-backend
prstack sync # Only syncs auth stack
# Switch to payments
git checkout feature-payments-frontend
prstack sync # Only syncs payments stackSyncing All Stacks
To update all your stacks at once, you can script it:
# Sync multiple stacks
for branch in feature-auth feature-payments; do
git checkout $branch
prstack sync
done