LinuxCommandLibrary

jj-rebase

moves commits to a new base in Jujutsu

TLDR

Rebase current change onto destination
$ jj rebase -d [destination]
copy
Rebase specific revision
$ jj rebase -r [revision] -d [destination]
copy
Rebase branch onto main
$ jj rebase -b [branch] -d main
copy

SYNOPSIS

jj rebase [options]

DESCRIPTION

jj rebase moves commits to a new base in Jujutsu. Automatically rebases descendant commits when modifying ancestors. Conflicts are recorded in commits and can be resolved later.

PARAMETERS

-r, --revision rev

Revision to rebase.
-s, --source rev
Rebase this revision and descendants.
-b, --branch rev
Rebase whole branch.
-d, --destination rev
Destination to rebase onto.

SEE ALSO

jj(1), jj-squash(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard