Exploring Operation History in Jujutsu

Trace jj operation history with log, show, diff, and restore commands.

78|6|Updated May 19, 2017
One-click install
npx skills add https://github.com/edmundmiller/dotfiles --skill exploring-operation-history-in-jujutsu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Exploring Operation History in Jujutsu
Source: https://github.com/edmundmiller/dotfiles/tree/main/config/claude/plugins/jj/skills/jj-operations
Command: npx skills add https://github.com/edmundmiller/dotfiles --skill exploring-operation-history-in-jujutsu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you understand and navigate the jj operation log, including viewing, diffing, and restoring past operations.

Core Features & Use Cases

  • View operation history: Inspect recent and past operations with details.
  • Time travel read-only: Use --at-op to explore past states without changing current work.
  • Restore operations: Use jj op restore to jump back to a known good state.

Quick Start

Use jj op log to find a past operation, then jj op restore <op-id> to return to that state.

Frequently Asked Questions about Exploring Operation History in Jujutsu

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I view the operation history in jj?

Use jj op log to display recent and past operations with their IDs and metadata. This shows the complete operation history, letting you identify which operation to explore or restore.

Can I explore past states without changing my current work?

Yes. The --at-op flag enables read-only time travel, letting you inspect the state at any past operation without modifying your current work or operation chain.

How do I restore to a previous operation?

Run jj op restore <op-id> to jump back to a known good state. First use jj op log to find the operation ID you want to restore to.

How do I compare changes across different operations?

Use jj op diff to view differences between operation states. This lets you understand what changed between two points in your operation history.

What information can I see about a specific operation?

Run jj op show <op-id> to view detailed metadata and context for that operation, including what changes it introduced and when it occurred.