commands.sh

jj

all

Jujutsu, a version control system. Some subcommands such as `log`, `desc`, `new`, `git`, etc. have their own usage documentation.

More info →

Subcommands (30)

jj abandon

Abandon a revision, rebasing descendants onto its parent(s). Abandoning a revision removes its associated change ID.

jj absorb

Split changes in the source revision and move each change to the closest mutable ancestor where the corresponding lines were modified last. Changes that have zero or multiple matching regions in ancestral revisions won't be moved.

jj bisect

Find a bad revision by bisection.

jj bookmark

Manage bookmarks in a `jj` repository. When using a Git backend, bookmarks correspond to Git branches.

jj commit

Update the description and create a new change on top.

jj config

Manage config options. Some subcommands such as `edit`, `get`, `list`, `path`, `set`, `unset` have their own usage documentation.

jj describe

Update the change description or other metadata.

jj diff

Compare file contents between two revisions.

jj diffedit

Touch up the content changes in a revision with a diff editor.

jj duplicate

Create new changes with the same content as existing ones.

jj edit

Set the specified revision as the working-copy revision. Note: It is generally recommended to instead use `jj new` and `jj squash`.

jj evolog

Show how a change has evolved over time, listing the previous commits it has pointed to.

jj git

Run Git-related commands for a `jj` repository.

jj interdiff

Compare changes of two revisions.

jj log

Show revision history as a graph.

jj new

Create a new empty change.

jj next

Move the working-copy commit to a child revision.

jj operation

Work with the operation log of a `jj` repository.

jj parallelize

Parallelize revisions by making them siblings.

jj prev

Move the working-copy commit to a parent revision.

jj rebase

Move revisions to different parent(s).

jj resolve

Resolve conflicted files with an external merge tool.

jj restore

Restore files from another revision.

jj revert

Apply the reverse of the given revision(s).

jj show

Show commit description and changes in a revision.

jj split

Split a revision in two.

jj squash

Move changes from a revision into another revision.

jj status

Show high-level repository status. This includes the working copy commit and its parents, and a summary of the changes in the working copy and any existing conflicts in the working copy.

jj tag

Manage tags in a `jj` repository. Some subcommands such as `delete`, `list`, `set` have their own usage documentation.

jj undo

Undo the most recent recorded operation in a `jj` repository.

Options (4)

boolean

Update description of the revisions specified by given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.)

Example: jj {{[desc|describe]}} {{[-m|--message]}} "{{message}}" {{[-r|--revision]}} {{revsets}}
-m, --messageboolean

Update description of the revisions specified by given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.)

Example: jj {{[desc|describe]}} {{[-m|--message]}} "{{message}}" {{[-r|--revision]}} {{revsets}}
-r, --revisionboolean

Update description of the revisions specified by given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.)

Example: jj {{[desc|describe]}} {{[-m|--message]}} "{{message}}" {{[-r|--revision]}} {{revsets}}
--at-opboolean

Execute a jj subcommand at an operation

Example: jj {{[--at-op|--at-operation]}} {{operation}} {{subcommand}}

Examples (8)

Update description of the revisions specified by given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.)

jj [desc|describe] [-m|--message] "message" [-r|--revision] revsets

Create a new commit/revision on top of a given revision

jj new revset

Create a new merge commit on top of multiple revisions

jj new revset1 revset2 ...

Update the working copy to point to a revision

jj edit revset

Undo the previous command (which may itself have been `undo`)

Execute a jj subcommand without snapshotting the working copy

jj --ignore-working-copy subcommand

Execute a jj subcommand at an operation

jj [--at-op|--at-operation] operation subcommand

Display help for a specific subcommand (like `new`, `commit`, `desc`, etc.)

jj help subcommand
made by @shridhargupta | data from tldr-pages