← 返回命令列表

Linux command

jj-operation 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List operations

jj operation log

Undo last operation

jj operation undo

Restore to specific operation

jj operation restore [operation-id]

Show operation details

jj operation show [operation-id]

说明

jj operation manages Jujutsu's operation log. Every change to the repository is recorded as an operation, enabling undo and time travel. Operations track what commands were run and their effects.

参数

log
List operation history.
undo
Undo the last operation.
restore _id_
Restore repository to operation state.
show _id_
Show operation details.
abandon _id_
Abandon old operations.

FAQ

What is the jj-operation command used for?

jj operation manages Jujutsu's operation log. Every change to the repository is recorded as an operation, enabling undo and time travel. Operations track what commands were run and their effects.

How do I run a basic jj-operation example?

Run `jj operation log` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does log do in jj-operation?

List operation history.