HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

jj prev — Move the working-copy commit to a parent revision. More information: <https://docs.jj-vcs.dev/latest

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thejj prevcommandcopycommitclimoveworking

Problem

How to use the jj prev command: Move the working-copy commit to a parent revision. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-prev>.

Solution

jj prev — Move the working-copy commit to a parent revision. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-prev>.

Move the working-copy commit to the previous parent revision:
jj prev


Move the working-copy commit a number of revisions backward:
jj prev {{offset}}


Edit the parent revision directly, instead of creating a new working-copy commit:
jj prev {{[-e|--edit]}}


Create a new working-copy commit instead of editing the parent revision directly:
jj prev {{[-n|--no-edit]}}


Jump to the previous conflicted parent:
jj prev --conflict

Code Snippets

Move the working-copy commit to the previous parent revision

jj prev

Move the working-copy commit a number of revisions backward

jj prev {{offset}}

Edit the parent revision directly, instead of creating a new working-copy commit

jj prev {{[-e|--edit]}}

Create a new working-copy commit instead of editing the parent revision directly

jj prev {{[-n|--no-edit]}}

Jump to the previous conflicted parent

jj prev --conflict

Context

tldr-pages: common/jj prev

Revisions (0)

No revisions yet.