rebase

SKILL.md

Rebase

Rebase the current branch.

Arguments

  • No arguments: rebase on local main
  • origin: fetch origin, rebase on origin/main
  • origin/branch: fetch origin, rebase on origin/branch
  • branch: rebase on local branch

Steps

  1. 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
Installs
2
First Seen
Apr 1, 2026