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

jj revert — Apply the reverse of the given revision(s). More information: <https://docs.jj-vcs.dev/latest/cli-re

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thegivencommandapplyclijj revertreverse

Problem

How to use the jj revert command: Apply the reverse of the given revision(s). More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-revert>.

Solution

jj revert — Apply the reverse of the given revision(s). More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-revert>.

Apply the reverse of the revisions specified by the given revsets (e.g. B::D, A..D, B|C|D, etc.):
jj revert {{[-r|--revisions]}} {{revsets}}


Apply the reverse on top of specified revisions:
jj revert {{[-r|--revisions]}} {{revsets}} {{[-d|--destination]}} {{revsets}}


Apply the reverse before and/or after specified revisions:
jj revert {{[-r|--revisions]}} {{revsets}} {{[-B|--insert-before]}} {{revsets}} {{[-A|--insert-after]}} {{revsets}}

Code Snippets

Apply the reverse of the revisions specified by the given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.)

jj revert {{[-r|--revisions]}} {{revsets}}

Apply the reverse on top of specified revisions

jj revert {{[-r|--revisions]}} {{revsets}} {{[-d|--destination]}} {{revsets}}

Apply the reverse before and/or after specified revisions

jj revert {{[-r|--revisions]}} {{revsets}} {{[-B|--insert-before]}} {{revsets}} {{[-A|--insert-after]}} {{revsets}}

Context

tldr-pages: common/jj revert

Revisions (0)

No revisions yet.