2025-07-24 22:27:13 -06:00
|
|
|
# jj operation
|
|
|
|
|
|
|
|
|
|
> Work with the operation log of a `jj` repository.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-operation>.
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Show stat, summary, and patch of modifications of an operation:
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
`jj {{[op|operation]}} show {{--stat}} {{[-s|--summary]}} {{[-p|--patch]}} {{operation}}`
|