mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
785 B
Plaintext
34 lines
785 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# jj operation
|
|
|
|
> Work with the operation log of a `jj` repository.
|
|
> More information: <https://docs.jj-vcs.dev/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}}`
|