commands.sh

jj rebase

all

Move revisions to different parent(s).

More info →

Options (6)

-r, --revisionsboolean

Move given revisions to a different parent(s)

Example: jj rebase {{[-r|--revisions]}} {{revset}} {{[-d|--destination]}} {{revset}}
-d, --destinationboolean

Move given revisions to a different parent(s)

Example: jj rebase {{[-r|--revisions]}} {{revset}} {{[-d|--destination]}} {{revset}}
-s, --sourceboolean

Move given revisions and all their descendants

Example: jj rebase {{[-s|--source]}} {{revset}} {{[-d|--destination]}} {{revset}}
-b, --branchboolean

Move all revisions in the branch containing given revisions

Example: jj rebase {{[-b|--branch]}} {{revset}} {{[-d|--destination]}} {{revset}}
-B, --insert-beforeboolean

Move revisions to before and/or after other revisions

Example: jj rebase {{[-r|--revisions]}} {{revset}} {{[-B|--insert-before]}} {{revset}} {{[-A|--insert-after]}} {{revset}}
-A, --insert-afterboolean

Move revisions to before and/or after other revisions

Example: jj rebase {{[-r|--revisions]}} {{revset}} {{[-B|--insert-before]}} {{revset}} {{[-A|--insert-after]}} {{revset}}

Examples (4)

Move given revisions to a different parent(s)

jj rebase [-r|--revisions] revset [-d|--destination] revset

Move given revisions and all their descendants

jj rebase [-s|--source] revset [-d|--destination] revset

Move all revisions in the branch containing given revisions

jj rebase [-b|--branch] revset [-d|--destination] revset

Move revisions to before and/or after other revisions

jj rebase [-r|--revisions] revset [-B|--insert-before] revset [-A|--insert-after] revset
made by @shridhargupta | data from tldr-pages