Understanding Workspaces
Jujutsu supports multiple workspaces sharing the same repository storage. This is similar to Git worktrees but more integrated.
Workspace Transient
- Key: Z / % (Vanilla) (majutsu-workspace)
Open the workspace transient.
- Key: * (Evil) (majutsu-workspace)
Open the workspace transient.
Transient actions:
- Key: l (majutsu-workspace-list)
List all workspaces.
- Key: v (majutsu-workspace-visit)
Visit a workspace by changing
default-directoryand refreshing Majutsu buffers.- Key: a (majutsu-workspace-add)
Add a new workspace.
Forget option:
- Key: -t
Toggle trashing workspace directories after forgetting them.
More transient actions:
- Key: f (majutsu-workspace-forget)
Forget a workspace. With
-tenabled, also move its local directory to the system trash afterjj workspace forgetsucceeds; this trash step accepts local roots only, while plain forget can still forget a remotely located workspace. Before moving a directory, Majutsu verifies that the path still identifies the directory the user confirmed and does not own the shared.jj/repostore. It checks all selected workspaces and reports all paths requiring manual cleanup together.- Key: u (majutsu-workspace-update-stale)
Update a stale workspace.
- Key: n (majutsu-workspace-rename)
Rename a workspace.
- Key: r (majutsu-workspace-root)
Show and copy the current workspace root.
Workspace sections are rendered from a structured jj workspace list -T
template. By default they show each workspace name, working-copy ids,
description, and resolved root path when available. If jj cannot resolve a
workspace root, Majutsu treats it as unavailable instead of showing the raw
<Error: ...> text in the section body. Workspace paths containing embedded
newlines or other control characters are preserved as complete values.