Skip to content

af rebase

Move a change, and your open changes built on it, onto other commits

Destinations can be open or submitted changes, or main’s tip (or the root commit, before anything has landed); a change can’t be based on an older commit of main. Naming more than one destination makes the change a merge. The rebase is refused if any of the changes has moved since you last saw it.

Usage

af rebase [OPTIONS] --onto <ONTO>

Options

  • -s, --source <SOURCE>

    Revset selecting the change to move; defaults to the workspace’s change

  • -o, --onto <ONTO>

    Revset selecting a destination; repeat to make a merge

    Aliases: -d, --destination

Global options

Every af command also takes the global options.

Examples

af rebase -s kxqpzvom -o main

Type to search…

↑↓ navigate↵ selectEsc close