HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

jj — Jujutsu, a version control system. Some subcommands such as `log`, `desc`, `new`, `git`, etc. have t

Submitted by: @import:tldr-pages··
0
Viewed 0 times
jjcommandclicontroljujutsusomeversionsystem

Problem

How to use the jj command: Jujutsu, a version control system. Some subcommands such as log, desc, new, git, etc. have their own usage documentation. More information: <https://docs.jj-vcs.dev/latest/cli-reference/>.

Solution

jj — Jujutsu, a version control system. Some subcommands such as log, desc, new, git, etc. have their own usage documentation. More information: <https://docs.jj-vcs.dev/latest/cli-reference/>.

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):
jj 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}}

Code Snippets

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`)

jj undo

Context

tldr-pages: common/jj

Revisions (0)

No revisions yet.