Abort if $ARGUMENTS is empty. Find the worktree path for $ARGUMENTS via git worktree list. Abort if branch or worktree doesn't exist. Abort if worktree has dirty working directory.
Detect layout
Check git worktree list. If the first entry ends with (bare) → standalone (bare repo + internal worktrees). Otherwise → nested (original repo is main, worktrees are external).
Rebase
cd into the worktree. Tag backup/$ARGUMENTS as safety net. Fetch and rebase onto `origin/m
[Description truncada. Veja o README completo no GitHub.]