Rebase All Challenge Branches
Rebases all challenge branches on the latest main branch to propagate changes.
Usage
code
/rebase-branches
Instructions
When this command is invoked:
- •Check that the repository is in a clean state (no uncommitted changes)
- •Execute the rebase script:
.claude/skills/rebase-branches/scripts/rebase-all-branches.sh - •Report the results to the user:
- •List successfully rebased branches
- •List any branches that had conflicts
- •Provide instructions for manually resolving conflicts if needed
- •Suggest push commands with
--force-with-leaseif rebases succeeded
Context
This repository uses a branch-based structure where:
- •The
mainbranch contains only documentation in.claude/ - •Each challenge branch contains a complete debugging challenge
- •When
.claude/README.mdis updated, all challenge branches should be rebased to include those changes
The rebase script automates this process, handling conflicts gracefully and providing clear feedback.