LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jj-prev

Change the working copy revision relative to the parent revision

TLDR

Move to the parent revision
$ jj prev
copy
Move multiple steps back
$ jj prev [3]
copy
Move and directly edit the parent revision
$ jj prev --edit
copy
Jump to the previous conflicted ancestor
$ jj prev --conflict
copy

SYNOPSIS

jj prev [OPTIONS] [OFFSET]

DESCRIPTION

jj prev moves the working-copy commit to an ancestor revision. By default it creates a new empty working-copy revision as a child of the target ancestor. With --edit, it directly edits the ancestor revision instead.This command is a convenient shorthand for navigating backward through commit history in the Jujutsu version control system.

PARAMETERS

OFFSET

Number of revisions to move backward. Default: 1.
-e, --edit
Edit the parent directly, instead of moving the working-copy commit. Overrides the ui.movement.edit configuration.
-n, --no-edit
Inverse of --edit; create a new working-copy commit on top of the destination.
--conflict
Jump to the previous conflicted ancestor.

SEE ALSO

jj(1), jj-next(1), jj-log(1)

Copied to clipboard
Kai