jj(1)

๐Ÿ“ฆ
version 0.46.0 ยท 4 versions
, in arch rolling, nixpkgs unstable

๐Ÿฆ‹ jj(1): the Jujutsu manual, bestie edition ๐Ÿฆ‹

okay so welcome to jj(1), the manual page for Jujutsu, aka An experimental VCS ๐Ÿ’… yes, the manpage itself says experimental, so we're keeping that energy fr fr.


โœจ NAME โœจ

jj โ€” Jujutsu (An experimental VCS) ๐Ÿซถ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

jj [-R|--repository] [--ignore-working-copy] [--no-integrate-operation]
[--ignore-immutable] [--at-operation] [--debug] [--color] [--quiet]
[--no-pager] [--config] [--config-file] [-h|--help] [-V|--version]
[subcommands]

๐ŸŽ€ DESCRIPTION ๐ŸŽ€

Jujutsu (An experimental VCS) ๐Ÿ’–

To get started, see the tutorial at jj help -k tutorial โ€” the link is https://docs.jj-vcs.dev/latest/tutorial/ โœจ


๐Ÿ’… OPTIONS ๐Ÿ’…

  • -h, --help โ€” print help (see a summary with -h) ๐Ÿ‘‘
  • -V, --version โ€” print version ๐Ÿท๏ธ

๐ŸŒˆ GLOBAL OPTIONS ๐ŸŒˆ

  • -R, --repository <REPOSITORY> โ€” path to repository to operate on ๐Ÿ—‚๏ธ

By default, Jujutsu searches for the closest .jj/ directory in an ancestor of the current working directory.

  • --ignore-working-copy โ€” don't snapshot the working copy, and don't update it ๐Ÿ™ˆ

By default, Jujutsu snapshots the working copy at the beginning of every command. The working copy is also updated at the end of the command, if the command modified the working-copy commit (@). If you want to avoid snapshotting the working copy and instead see a possibly stale working-copy commit, you can use --ignore-working-copy. This may be useful e.g. in a command prompt, especially if you have another process that commits the working copy.

Loading the repository at a specific operation with --at-operation implies --ignore-working-copy.

  • --no-integrate-operation โ€” run the command as usual but don't integrate any operations ๐Ÿšซ

When this option is given, the operations will still be created as usual but they will not be integrated to the operation log. The working copy will also not be updated.

The command will print the resulting operation ID. You can pass that to e.g. jj --at-op to inspect the resulting repo state, or you can pass it to jj op restore to restore the repo to that state. You can also pass the ID to jj op integrate to integrate the operation.

Note that this does not prevent side effects outside the repo. For example, jj git push --no-integrate-operation will still perform the push. ๐Ÿ’€

  • --ignore-immutable โ€” allow rewriting immutable commits ๐Ÿ”“

By default, Jujutsu prevents rewriting commits in the configured set of immutable commits. This option disables that check and lets you rewrite any commit but the root commit.

This option only affects the check. It does not affect the immutable_heads() revset or the immutable template keyword.

  • --at-operation <AT_OPERATION> โ€” operation to load the repo at ๐Ÿ•ฐ๏ธ

Operation to load the repo at. By default, Jujutsu loads the repo at the most recent operation, or at the merge of the divergent operations if any.

You can use --at-op=<operation ID> to see what the repo looked like at an earlier operation. For example jj --at-op=<operation ID> st will show you what jj st would have shown you when the given operation had just finished. --at-op=@ is pretty much the same as the default except that divergent operations will never be merged.

Use jj op log to find the operation ID you want. Any unambiguous prefix of the operation ID is enough.

When loading the repo at an earlier operation, the working copy will be ignored, as if --ignore-working-copy had been specified.

It is possible to run mutating commands when loading the repo at an earlier operation. Doing that is equivalent to having run concurrent commands starting at the earlier operation. There's rarely a reason to do that, but it is possible.

  • --debug โ€” enable debug logging ๐Ÿ›
  • --color <WHEN> โ€” when to colorize output ๐ŸŽจ

Possible values:

  • always
  • never
  • debug
  • auto
  • --quiet โ€” silence non-primary command output ๐Ÿคซ

For example, jj file list will still list files, but it won't tell you if the working copy was snapshotted or if descendants were rebased.

Warnings and errors will still be printed.

  • --no-pager โ€” disable the pager ๐Ÿ“„
  • --config <NAME=VALUE> โ€” additional configuration options (can be repeated) โš™๏ธ

The name should be specified as TOML dotted keys. The value should be specified as a TOML expression. If string value isn't enclosed by any TOML constructs (such as array notation), quotes can be omitted.

  • --config-file <PATH> โ€” additional configuration files (can be repeated) ๐Ÿ“

๐Ÿ‘‘ SUBCOMMANDS ๐Ÿ‘‘

  • jj-abandon(1) โ€” abandon a revision ๐Ÿ—‘๏ธ
  • jj-absorb(1) โ€” move changes from a revision into the stack of mutable revisions ๐Ÿงฝ
  • jj-arrange(1) โ€” interactively arrange the commit graph ๐Ÿงฉ
  • jj-bisect(1) โ€” find a bad revision by bisection ๐Ÿ”
  • jj-bookmark(1) โ€” manage bookmarks [default alias: b] ๐Ÿ”–
  • jj-commit(1) โ€” update the description and create a new change on top [default alias: ci] ๐Ÿ“
  • jj-config(1) โ€” manage config options โš™๏ธ
  • jj-converge(1) โ€” converge divergent changes ๐ŸŒ€
  • jj-describe(1) โ€” update the change description or other metadata [default alias: desc] ๐Ÿท๏ธ
  • jj-diff(1) โ€” compare file contents between two revisions ๐Ÿ†š
  • jj-diffedit(1) โ€” touch up the content changes in a revision with a diff editor โœ๏ธ
  • jj-duplicate(1) โ€” create new changes with the same content as existing ones ๐Ÿ‘ฏ
  • jj-edit(1) โ€” sets the specified revision as the working-copy revision ๐Ÿ› ๏ธ
  • jj-evolog(1) โ€” show how a change has evolved over time ๐Ÿ“œ
  • jj-file(1) โ€” file operations ๐Ÿ“‚
  • jj-fix(1) โ€” update files with formatting fixes or other changes ๐Ÿช„
  • jj-gerrit(1) โ€” interact with Gerrit Code Review ๐Ÿง
  • jj-git(1) โ€” commands for working with Git remotes and the underlying Git repo ๐ŸŒ
  • jj-help(1) โ€” print this message or the help of the given subcommand(s) โ“
  • jj-interdiff(1) โ€” show differences between the diffs of two revisions ๐Ÿ”„
  • jj-log(1) โ€” show revision history ๐Ÿ“š
  • jj-metaedit(1) โ€” modify the metadata of a revision without changing its content ๐Ÿท๏ธ
  • jj-new(1) โ€” create a new, empty change and (by default) edit it in the working copy ๐Ÿ†•
  • jj-next(1) โ€” move the working-copy commit to the child revision โญ๏ธ
  • jj-operation(1) โ€” commands for working with the operation log ๐Ÿ—ƒ๏ธ
  • jj-parallelize(1) โ€” parallelize revisions by making them siblings ๐Ÿงฌ
  • jj-prev(1) โ€” change the working copy revision relative to the parent revision โฎ๏ธ
  • jj-rebase(1) โ€” move revisions to different parent(s) ๐ŸŒฑ
  • jj-redo(1) โ€” redo the most recently undone operation ๐Ÿ”
  • jj-resolve(1) โ€” resolve conflicted files with an external merge tool ๐Ÿงฐ
  • jj-restore(1) โ€” restore paths from another revision โ™ป๏ธ
  • jj-revert(1) โ€” apply the reverse of the given revision(s) โ†ฉ๏ธ
  • jj-root(1) โ€” show the current workspace root directory (shortcut for jj workspace root) ๐Ÿ 
  • jj-run(1) โ€” run a command across a set of revisions. ๐Ÿƒโ€โ™€๏ธ
  • jj-show(1) โ€” show revision metadata and diff ๐Ÿ‘€
  • jj-sign(1) โ€” cryptographically sign a revision โœ๏ธ
  • jj-simplify-parents(1) โ€” simplify parent edges for the specified revision(s) ๐Ÿชข
  • jj-sparse(1) โ€” manage which paths from the working-copy commit are present in the working copy ๐Ÿงบ
  • jj-split(1) โ€” split a revision in two โœ‚๏ธ
  • jj-squash(1) โ€” move changes from a revision into another revision ๐Ÿฅž
  • jj-status(1) โ€” show high-level repo status [default alias: st] ๐Ÿ“Š
  • jj-tag(1) โ€” manage tags ๐Ÿท๏ธ
  • jj-undo(1) โ€” undo the last operation โช
  • jj-unsign(1) โ€” drop a cryptographic signature ๐Ÿ—‘๏ธ
  • jj-util(1) โ€” infrequently used commands such as for generating shell completions ๐Ÿงฐ
  • jj-version(1) โ€” display version information ๐Ÿท๏ธ
  • jj-workspace(1) โ€” commands for working with workspaces ๐Ÿข

๐Ÿงš EXTRA ๐Ÿงš

jj help --help lists available keywords. Use jj help -k to show help for one of these keywords. ๐Ÿ’ก

โญ VERSION โญ

v0.46.0 โ€” periodt ๐Ÿ’…


signed off from the <hotpink>jj 0.46.0</hotpink> manual / version v0.46.0, source-version jj 0.46.0 โ€” the footer doesn't list a date, so consider this your cute timestamp, bestie ๐Ÿซถ๐ŸŽ€

๐Ÿ“ฆ where this page comes from