rebase
SKILL.md
Rebase
Rebase the current branch.
Arguments
- No arguments: rebase on local main
origin: fetch origin, rebase on origin/mainorigin/branch: fetch origin, rebase on origin/branchbranch: rebase on local branch
Steps
- Parse arguments
- No args → target is "main", no fetch
- Contains "/" (e.g., "origin/develop") → split into remote and branch, fetch remote, target is remote/branch
- Just "origin" → fetch origin, target is "origin/main"
- Anything else → target is that branch name, no fetch