jj
БесплатноБез исполняемых скриптовНе проверенReference for Jujutsu version-control tasks. Use when repository context identifies jj.
Об этом скилле
jj
Jujutsu is a Git-compatible VCS. The working copy is automatically snapshotted
as a commit on every jj command — there is no staging area. All changes live
in @ (the working-copy commit) until you finalize them.
Key Concepts
- Change ID vs Commit ID — A change ID is a stable identifier that persists across rewrites. A commit ID (hash) changes whenever content is modified. Prefer change IDs when referring to revisions.
@— The working-copy commit.@-is its parent.- No staging area — Files are tracked implicitly. New files are
auto-tracked; use
.gitignoreto exclude files. - Automatic rebase — Rewriting a commit automatically rebases all its descendants.
- First-class conflicts — Conflicts are recorded in commits and don't block operations. Resolve them later by editing the conflicted commit and squashing the fix.
- Bookmarks — Named pointers to commits (equivalent to Git branches). They move automatically when the target commit is rewritten, but do not advance when you create new commits.
Avoid common Git assumptions
jj diffhas no Git-style--check; usejj difforjj diff --stat.--statand--summaryare mutually exclusive.- Put revisions in
-r <rev>and paths after the command, e.g.jj show -r @- -- path. - Run jj inside the repository; otherwise it reports that no jj repo exists.
Common Commands
Viewing State
| Command | Purpose |
|---|---|
jj st |
Show working-copy status |
jj log |
Show commit graph (defaults to non-remote commits) |
jj log -r ::@ |
Show ancestors of working copy |
jj log -r 'all()' |
Show all commits |
jj diff |
Diff of current revision (@) |
jj diff -r <rev> |
Diff of a specific revision |
jj diff --from A --to B |
Diff between two revisions |
jj show <rev> |
Show a revision's changes and metadata |
jj evolog |
Show how a change evolved over time |
Creating & Describing Changes
| Command | Purpose |
|---|---|
jj new |
Finalize @ and start a new empty change on top |
jj new main |
Start a new change from main |
jj new A B |
Create a merge commit with parents A and B |
jj commit -m "msg" |
Describe @ and start a new change (= describe + new) |
jj describe -m "msg" |
Set/edit the description of @ |
jj describe <rev> -m "msg" |
Set/edit the description of any revision |
Squash
Squash moves changes from one commit into another.
| Command | Purpose |
|---|---|
jj squash |
Move all changes from @ into its parent (@-) |
jj squash -i |
Interactively select which changes to move into parent |
jj squash <paths>... |
Move only specific files into parent |
jj squash --into <rev> |
Move changes from @ into an arbitrary ancestor |
jj squash --from <rev> |
Move changes from <rev> into its parent |
jj squash --from <rev> --into <rev> |
Move changes between arbitrary revisions |
jj squash -i --from X --into Y |
Interactively move selected changes between arbitrary revisions |
Note: --from defaults to @, --into defaults to the parent of --from.
The flags -r and --into cannot be combined.
Split
Split divides a commit into two or more sequential commits.
| Command | Purpose |
|---|---|
jj split |
Interactively split @ — select changes for the first commit; the rest go into a second |
jj split -r <rev> |
Split a revision other than @ |
jj split <paths>... |
Split by putting the listed files into the first commit |
After splitting, you'll be prompted for descriptions for each resulting commit.
Editing History
| Command | Purpose |
|---|---|
jj edit <change-id> |
Check out a previous change for editing (becomes @) |
jj edit @- |
Edit the parent of the current change |
jj diffedit -r <rev> |
Edit a revision's diff without checking it out |
jj abandon |
Discard @ and rebase its descendants onto @- |
jj restore <paths>... |
Restore files in @ from its parent |
jj restore --from <rev> <paths>... |
Restore files from a specific revision |
jj duplicate <rev> |
Copy a commit to a new change |
jj revert -r <rev> -B @ |
Create a reverse-patch of a revision before @ |
Navigation
| Command | Purpose |
|---|---|
jj next --edit |
Move to the next (child) change |
jj prev --edit |
Move to the previous (parent) change |
Rebasing
| Command | Purpose |
|---|---|
jj rebase -s <src> -o <onto> |
Rebase <src> and descendants onto <onto> |
jj rebase -b <rev> -o <onto> |
Rebase the branch containing <rev> onto <onto> |
jj rebase -r <rev> -o <onto> |
Rebase only <rev> (re-parents descendants) |
jj rebase -r <rev> --before <target> |
Insert <rev> before <target> |
jj rebase -r <rev> --after <target> |
Insert <rev> after <target> |
Note: -d/--destination is a legacy alias for
Установить jj в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл jj?
Reference for Jujutsu version-control tasks. Use when repository context identifies jj.
Как установить скилл jj?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл jj запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic