1.0 KiB
1.0 KiB
description, allowed-tools
| description | allowed-tools |
|---|---|
| Rebase current branch onto a feature branch | Bash |
Rebase onto Feature Branch
Rebase the current branch onto a feature branch using worktree + tmux with automatic conflict resolution.
Usage
Provide the feature branch name to rebase the current branch onto.
Example
User on dev branch: "Rebase dev onto feature-auth"
User on main branch: "Rebase main onto feature/new-api"
Execution
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/rebase.py "<feature-branch>"
Prerequisites
- Must be on the target branch (e.g., dev, main)
- Feature branch must exist
- tmux must be installed
What Happens
- Checks if feature branch has a worktree
- If worktree exists:
- Enters the worktree
- Rebases feature branch onto current branch
- Resolves any conflicts
- Returns to main repo
- Rebases current branch onto feature branch
- Resolves any rebase conflicts using Claude Code in tmux
After Launch
Use tmux attach -t rebase-<target>-onto-<feature> to monitor progress.