LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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 current branch onto main
$ jj rebase -b @ -d main
copy
Insert revision after destination
$ jj rebase -r [revision] -A [destination]
copy

SYNOPSIS

jj rebase [options]

DESCRIPTION

jj rebase moves commits to a new base in Jujutsu. If none of -b, -s, or -r is specified, defaults to -b @ (rebase current branch). Conflicts are recorded in commits and can be resolved later.

PARAMETERS

-r, --revisions rev

Rebase only the specified revisions, filling holes by rebasing descendants onto their parents.
-s, --source rev
Rebase this revision and all its descendants as a subtree.
-b, --branch rev
Rebase whole branch including ancestors not shared with the destination.
-d, --destination rev
Destination to rebase onto.
-A, --insert-after rev
Insert rebased revisions after target, rebasing target's descendants onto them.
-B, --insert-before rev
Insert rebased revisions before target by rebasing onto target's parents.

SEE ALSO

jj(1), jj-squash(1)

Copied to clipboard
Kai