1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-22 18:55:24 +02:00
tldr/pages/common/jj-restore.md
Agam Agarwal a8619a922f
jj-{absorb, evolog, restore}: add pages (#17129)
* jj-evolog: add page

* jj-absorb: add page

* jj-restore: add page

* Fix typo in jj-restore

---------

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-07-05 16:45:41 +02:00

547 B

jj restore

Restore files from another revision. More information: https://jj-vcs.github.io/jj/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]}}