jujutsu
/jujutsu
Manages version control with Jujutsu (jj), including rebasing, conflict resolution, and Git interop. Use when tracking changes, navigating history, squashing/splitting commits, or pushing to Git remotes.
- Author
- DaRacci ↗
- Repository
- nix-config ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Manages version control with Jujutsu (jj), including rebasing, conflict resolution, and Git interop. Use when tracking changes, navigating history, squashing/splitting commits, or pushing to Git remotes.
Original author description
Manages version control with Jujutsu (jj), including rebasing, conflict resolution, and Git interop. Use when tracking changes, navigating history, squashing/splitting commits, or pushing to Git remotes.
How it works
- Key Commands
- Project Setup
- Basic Workflow
- Time Travel
- Merging & Rebasing
- Conflicts
- Revset Syntax
- Templates
- Git Interop
- Advanced Commands
SKILL.md preview
--- name: jujutsu description: Manages version control with Jujutsu (jj), including rebasing, conflict resolution, and Git interop. Use when tracking changes, navigating history, squashing/splitting commits, or pushing to Git remotes. --- # Jujutsu Git-compatible VCS for concurrent work and easier history editing. > ⚠️ **Not Git!** Jujutsu syntax differs: > > - Parent: `@-` not `@~1` or `@^` > - Grandparent: `@--` not `@~2` > - Child: `@+` not `@~-1` > - Use `jj log`, not `jj changes` ## Key Commands | Command | Description | | -------------------------- | -------------------------------------- | | `jj st` | Show working copy status | | `jj log` | Show change log | | `jj diff` | Show working copy changes | | `jj new` | Create new change | | `jj desc` | Edit change description | | `jj squash` | Move changes to parent | | `jj split` | Split current change | | `jj rebase -s src -d dest` | Rebase changes | | `jj absorb` | Move changes into mutable stack | | `jj bisect` | Find bad revision by bisection | | `jj fix` | Update files with formatter fixes | | `jj sign` | Cryptographically sign revision | | `jj metaedit` | Edit metadata without changing content | ## Project Setup ```bash jj git init # Init in existing git repo jj git init --colocate # Side-by-side with git ``` ## Basic Workflow ```bash jj new # Create new change jj desc -m "feat: add feature" # Set description jj log # View history jj edit change-id # Switch to change jj new --before @ # Insert before current jj edit @- # Go to parent ``` ## Time Travel ```bash jj edit change-id # Switch to specific change jj next --edit # Next child change jj edit @- # Parent change jj new --before @ -m msg # Insert before current ``` ## Merging & Rebasing ```bash jj new x yz -m msg # Merge changes jj rebase -s src -d dest # Rebase source onto dest jj abandon # Drop current change ``` ## Conflicts ```bash jj resolve # Interactive conflict resolution # Edit files, then continue ``` ## Revset Syntax **Parent/child operators:** | Syntax | Meaning | Example | | ------ | ---------------- | -------------------- | | `@-` | Parent of @ | `jj diff -r @-` | | `@--` | Grandparent | `jj log -r @--` | | `x-` | Parent of x | `jj diff -r abc123-` | | `@+` | Child of @ | `jj log -r @+` | | `x::y` | x to y inclusive | `jj log -r main::@` | | `x..y` | x to y exclusive | `jj log -r main..@` | | `x\|y` | Union (or) | `jj log -r 'a \| b'` | **⚠️ Common mistakes:** - ❌ `@~1` → ✅ `@-` - ❌ `@^` → ✅ `@-` - ❌ `@~-1` → ✅ `@+` - ❌ `jj changes` → ✅ `jj log` or `jj diff` - ❌ `a,b,c` → ✅ `a | b | c` **Functions:** ```bash jj log -r 'heads(all())' # All heads jj log -r 'remote_bookmarks()..' # Not on remote jj log -r 'author(name)' # By author jj log -r 'description(regex)' # By description jj log -r 'mine()' # My commits jj log -r 'committer_date(after:"7 days ago")' # Recent commits jj log -r 'mine() & committer_date(after:"yesterday")' # My recent ``` ## Templates ```bash jj log -T 'commit_id ++ "\n" ++ description' ``` ## Git Interop ```bash jj bookmark create main -r @ # Create bookmark jj git push --bookmark main # Push bookmark jj git fetch # Fetch remote jj bookmark track main@origin # Track remote ``` ## Advanced Commands ```bash jj absorb # Auto-move changes into matching commits jj bisect start # Start bisection jj bisect good # Mark current good jj bisect bad # Mark current bad jj fix # Run configured formatters on files jj sign -r @ # Sign current revision jj metaedit -r @ -m "new message" # Edit metadata only ``` ## Tips - No staging; changes apply immediately - Use conventional commits: `type(scope): desc` - `jj undo` reverts operations - `jj op log` shows operation history - Bookmarks are like branches - `jj absorb` is strong tool for fixing stacks
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · DaRacci/nix-config | 100 | MIT |
| cryfs/cryfs | 100 | LGPL |
Database snapshot: 13.11.2026 · package version 8260fabda0fc (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100jj
Jujutsu (jj) version control system. Use when working with jj repositories, creating changes, rebasing, managing bookmarks, resolving conflicts, or syncing with Git remotes. Triggers on "jj", "jujutsu", "jj rebase", "jj bookmark", "jj squash", or when user mentions working with jj instead of git. - 100jj
Jujutsu (jj) — the Git-compatible version control system. Activate ONLY when a .jj/ directory is present in the project or when jj/jujutsu is explicitly mentioned. Do NOT activate for plain git repos without .jj/. Use for any VCS operations in jj-managed projects: commit, push,… - 100jj-workflow
Guides Claude on using Jujutsu (jj) version control system. Use when working with jj repositories, making commits, syncing changes, or managing version control workflows. - 100git
Guide for Git operations including commits, branches, rebasing, and conflict resolution. Use when working with version control, creating commits, managing branches, or resolving merge conflicts. - 100working-with-jj
Expert guidance for using JJ (Jujutsu) version control system. Use when working with JJ, whatever the subject. Operations, revsets, templates, debugging change evolution, etc. Covers JJ commands, template system, evolog, operations log, and interoperability with git remotes. - 90Git
Expert guidance for Git version control operations including commits, branches, merging, rebasing, conflict resolution, and Git workflows. Use this when working with Git repositories, version control, or collaborative development.