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

jj restore — Restore files from another revision. More information: <https://docs.jj-vcs.dev/latest/cli-reference

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandanotherfilesfromclijj restorerestorerevision

Problem

How to use the jj restore command: Restore files from another revision. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-restore>.

Solution

jj restore — Restore files from another revision. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-restore>.

Restore files from a revision into another revision:
jj restore {{[-f|--from]}} {{revset}} {{[-t|--into]}} {{revset}} {{filesets}}


Undo the changes in a revision as compared to the merge of its parents:
jj restore {{[-c|--changes-in]}} {{revset}} {{filesets}}


Interactively choose what parts to restore:
jj restore {{[-f|--from]}} {{revset}} {{[-t|--into]}} {{revset}} {{[-i|--interactive]}}

Code Snippets

Restore files from a revision into another revision

jj restore {{[-f|--from]}} {{revset}} {{[-t|--into]}} {{revset}} {{filesets}}

Undo the changes in a revision as compared to the merge of its parents

jj restore {{[-c|--changes-in]}} {{revset}} {{filesets}}

Interactively choose what parts to restore

jj restore {{[-f|--from]}} {{revset}} {{[-t|--into]}} {{revset}} {{[-i|--interactive]}}

Context

tldr-pages: common/jj restore

Revisions (0)

No revisions yet.