Linux command
jj-restore 命令
文本
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Restore files from parent
jj restore
Restore specific files
jj restore [file1] [file2]
Restore from specific revision
jj restore --from [revision]
Restore to specific revision
jj restore --to [revision] --from [source]
Restore files matching a revset
jj restore -c [revision] [path]
Restore and keep changes as a new commit
jj restore --changes-in [revision]
说明
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.
参数
- --from _revision_
- Source revision for content.
- --to _revision_
- Target revision to modify.
FAQ
What is the jj-restore command used for?
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.
How do I run a basic jj-restore example?
Run `jj restore` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --from _revision_ do in jj-restore?
Source revision for content.