1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-02 08:15:23 +02:00

jj: add operation pages for jj (Jujutsu)

This commit is contained in:
Agam Agarwal 2025-06-26 22:14:42 +05:30
parent a138d21f1c
commit c9ead03de3
4 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,10 @@
# jj operation log
> View log of operations of this jj repository as a graph.
> Operation ID copied from here can be passed to other commands to run them at that operation.
> They can also be passed to `jj operation restore` to restore the repository to that state.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-operation-log>.
- Show operation log:
`jj {{[op|operation]}} log`

View file

@ -0,0 +1,9 @@
# jj operation restore
> Restore the repository to an earlier state.
> `jj operation log` can be used to find the operation ID to be passed here.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-operation-restore>.
- Restore the repository to its state at the given operation:
`jj {{[op|operation]}} restore {{operation}}`

View file

@ -0,0 +1,13 @@
# jj operation show
> Show changes to the repository in an operation.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-operation-show>.
- Show changes 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}}`

View file

@ -0,0 +1,12 @@
# jj operation undo
> Creates a new operation that undoes an earlier operation.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-operation-undo>.
- Undo the last operation:
`jj {{[op|operation]}} undo`
- Undo the given operation:
`jj {{[op|operation]}} undo {{operation}}`