jj-git-colocation(1)
π jj-git-colocation(1) β General Commands Manual π
okay bestie, welcome to jj-git-colocation, the little command that runs the whole "my Jujutsu repo and my Git repo are living in the same house" situation. π β¨ It's the parent command for the colocation subcommands, and no cap, it's giving gatekeeper-of-the-closet energy. Let's go. π
β¨ NAME β¨
jj-git-colocation β manage Jujutsu repository colocation with Git π¦
πΈ SYNOPSIS πΈ
jj git colocation [-R|--repository] [--ignore-working-copy]
[--no-integrate-operation] [--ignore-immutable] [--at-operation]
[--debug] [--color] [--quiet] [--no-pager] [--config] [--config-file]
[-h|--help] <subcommands>
π DESCRIPTION π
Manage Jujutsu repository colocation with Git. That's the whole vibe. It doesn't do the thing itself β it hands you the subcommands that do the thing. Main character energy, but a delegator. π
π OPTIONS π
-h,--helpβ print the help. lowercase-hgives you the short-and-sweet summary version, iykyk.
π GLOBAL OPTIONS π
-R,--repository <REPOSITORY>β the path to the repo you wanna operate on. ποΈ By default, Jujutsu goes hunting for the closest.jj/directory up in an ancestor of wherever you're currently standing (your 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 start of every single command, and then updates the working copy at the end too β if the command modified the working-copy commit (@). So if you wanna skip the snapshotting and just look at a possibly stale working-copy commit instead, this is your girl. It's lowkey useful in stuff like a command prompt, especially if you've got another process out here committing the working copy. β οΈ Also: loading the repo at a specific operation with--at-operationimplies--ignore-working-copy.--no-integrate-operationβ run the command as usual but don't integrate any operations. π« With this on, the operations still get created like normal, they just don't get integrated into the operation log. The working copy also won't be updated. The command will print the resulting operation ID for you β you can pass that to e.g.jj --at-opto peek at the resulting repo state, or hand it tojj op restoreto restore the repo to that state. You can also pass the ID tojj op integrateto integrate the operation. π Heads up though: this does not stop side effects outside the repo. For example,jj git push --no-integrate-operationwill still perform the push. fr fr, the push happens.--ignore-immutableβ allow rewriting immutable commits. π By default Jujutsu blocks rewriting commits in the configured set of immutable commits, and this option turns that check off so you can rewrite any commit β except the root commit, that one's untouchable, periodt. This option only affects the check. It does not affect theimmutable_heads()revset or theimmutabletemplate keyword.--at-operation <AT_OPERATION>β the 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 there are any. You can use--at-op=<operation ID>to see what the repo looked like at an earlier operation. Example:jj --at-op=<operation ID> stwill show you whatjj stwould have shown you back when the given operation had just finished. And--at-op=@is pretty much the same as the default, except divergent operations will never be merged. Usejj op logto find the operation ID you want β any unambiguous prefix of the operation ID is enough. π When you load the repo at an earlier operation, the working copy gets ignored, as if--ignore-working-copyhad been specified. And yes, 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:alwaysneverdebugauto
--quietβ silence non-primary command output. π€« For example,jj file listwill 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 though β no hiding those. β οΈ--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 the 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-git-colocation-disable(1)β convert into a non-colocated Jujutsu/Git repository. πjj-git-colocation-enable(1)β convert into a colocated Jujutsu/Git repository. πjj-git-colocation-status(1)β show the current colocation status. π
bestie reminder: this page is from thecolocationsource, dated under thejj-git-colocation(1)manual entry. go slay, and may your repos always be exactly as colocated as you intended. πβ¨π
π¦ where this page comes from
- alpine 3.24: jujutsu-doc 0.42.0-r0 Β· Apache-2.0
- arch rolling: jujutsu 0.46.0-1 Β· Apache-2.0
- nixos 26.05: jujutsu 0.41.0
- nixpkgs unstable: jujutsu 0.46.0
- ubuntu stonking: jujutsu 0.44.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms