1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-16 23:35:23 +02:00
tldr/pages/common/jj-operation.md

29 lines
695 B
Markdown
Raw Normal View History

2025-07-03 18:12:35 +05:30
# jj operation
> Work with the operation log of a `jj` repository.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-operation>.
- Show operation log:
`jj {{[op|operation]}} log`
- Undo the last operation:
`jj {{[op|operation]}} undo`
- Undo a given operation:
`jj {{[op|operation]}} undo {{operation}}`
- Restore the repository to its state at a given operation:
`jj {{[op|operation]}} restore {{operation}}`
- Show changes to the repository in an operation:
`jj {{[op|operation]}} show {{operation}}`
- Show stat, summary and patch of modifications of an operation:
`jj {{[op|operation]}} show {{--stat}} {{[-s|--summary]}} {{[-p|--patch]}} {{operation}}`