jj-operation
Execute specific operations
TLDR
Show operation log
Undo the last operation
Undo a given operation
Restore the repository to its state at a given operation
Show changes to the repository in an operation
Show stat, summary, and patch of modifications of an operation
SYNOPSIS
jj operation [-r REVISION] [--summary] [-o FORMAT]
PARAMETERS
-r, --revision REVISION
Show operations since the given revision ID or ref
--summary
Display only a summary line per operation
-o, --output FORMAT
Output format: table, compact, json [default: table]
--color WHEN
Control color output: always, never, auto [default: auto]
REVISION
Revision to start operation list from (defaults to workspace root)
DESCRIPTION
The jj operation command displays the history of operations performed on a Jujutsu (jj) repository. Jujutsu is a Git-compatible version control system (VCS) that models changes as explicit operations, providing a more intuitive workflow than traditional Git.
Operations capture every change to the repository state, including commits, working copy modifications, rebases, and configuration updates. Each operation has a unique ID and is immutable, forming a linear history that allows easy navigation, undoing, or inspecting repo evolution.
By default, jj operation lists recent operations in a table format, showing ID, user, summary, and time. This helps users track what happened and when, especially in collaborative settings or during debugging. Specify a revision with -r to list operations since that point.
Unlike git log, which focuses on commits, jj operation reveals the full sequence of repo mutations, making it essential for jj users managing complex changesets.
CAVEATS
Requires Jujutsu (jj) installed and a valid jj repository. Operations are repo-specific; use jj git export for Git interop. No pager support by default.
EXAMPLES
jj operation
Lists recent operations.
jj operation -r main
Operations since main branch.
jj operation abc123
Details of specific operation ID.
OUTPUT FIELDS
Table shows: ID, User, Summary, Time. Use --summary for concise view or jj operation ID for full details including changes.
HISTORY
Jujutsu (jj) was created by Martin von Zweigbergk at Google in 2022, with jj operation introduced in early alphas. Stable release in 2023 (v0.1+); focuses on explicit operation tracking absent in Git.


