commands.sh

jj restore

all

Restore files from another revision.

More info →

Options (4)

-f, --fromboolean

Restore files from a revision into another revision

Example: jj restore {{[-f|--from]}} {{revset}} {{[-t|--into]}} {{revset}} {{filesets}}
-t, --intoboolean

Restore files from a revision into another revision

Example: jj restore {{[-f|--from]}} {{revset}} {{[-t|--into]}} {{revset}} {{filesets}}
-c, --changes-inboolean

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

Example: jj restore {{[-c|--changes-in]}} {{revset}} {{filesets}}
-i, --interactiveboolean

Interactively choose what parts to restore

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

Examples (3)

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]
made by @shridhargupta | data from tldr-pages