LinuxCommandLibrary

jj-restore

restores file contents from another revision

TLDR

Restore files from parent

$ jj restore
copy
Restore specific files
$ jj restore [file1] [file2]
copy
Restore from specific revision
$ jj restore --from [revision]
copy
Restore to specific revision
$ jj restore --to [revision] --from [source]
copy

SYNOPSIS

jj restore [options] [paths...]

DESCRIPTION

jj restore restores file contents from another revision. By default, restores from the parent revision, effectively discarding changes. Can restore specific files or entire working copy.

PARAMETERS

--from revision

Source revision for content.
--to revision
Target revision to modify.

SEE ALSO

jj(1), jj-revert(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community