using-jj-instead-of-git

Replace Git version control actions with Jujutsu (jj) equivalents.

130|8|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/sandgardenhq/sgai --skill using-jj-instead-of-git
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-jj-instead-of-git
Source: https://github.com/sandgardenhq/sgai/tree/main/cmd/sgai/skel/.sgai/skills/using-jj-instead-of-git
Command: npx skills add https://github.com/sandgardenhq/sgai --skill using-jj-instead-of-git

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Teams working in Git often struggle with complex workflows, interrupted operations, and confusing commands. This Skill standardizes all version control tasks on Jujutsu (jj), providing a simpler mental model, automatic file tracking, and powerful undo/operation history while remaining Git-compatible.

Core Features & Use Cases

  • Git-to-jj Command Mapping: Clear equivalents for init, clone, status, commit, amend, branching (bookmarks), merge, rebase, cherry-pick, push/fetch, and revert.
  • Safer History Editing: Use jj's squash, split, diffedit, and operation log/undo to adjust changes without destructive resets.
  • Remote Interop: Push/fetch to Git remotes and manage bookmarks instead of branches, preserving compatibility.
  • Use Case: Replace a team's daily git workflow (status, commit, amend, branch, rebase, push) with jj commands, reducing context switches and avoiding add/staging pitfalls.

Quick Start

Ask to convert your intended git action into the jj equivalent and run it using jj for the same outcome.

Frequently Asked Questions about using-jj-instead-of-git

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I replace git commands with jj equivalents for version control?

You can replace git commands with jj equivalents for version control by mapping standard actions like commit, amend, branch, and rebase to Jujutsu's syntax. This workflow provides automatic file tracking and a simpler mental model while remaining Git-compatible.

What is the best way to manage branching and merging in jj?

The best way to manage branching and merging in jj is by using bookmarks instead of traditional branches. This approach simplifies history editing through squash, split, and operation log undo, avoiding destructive resets while maintaining remote interoperability.

Can I push and fetch to existing Git remotes using jj?

Yes, you can push and fetch to existing Git remotes using jj. Jujutsu maintains full remote interoperability with Git, allowing you to manage bookmarks and synchronize changes without losing compatibility with your current repository infrastructure.

Why should I use jj instead of git for editing commit history?

You should use jj instead of git for editing commit history to leverage safer, non-destructive operations. Jujutsu's operation log with undo, alongside squash and diffedit, lets you adjust changes without the risk of complex rebases or hard resets.

Does jj support cherry-picking and amending commits like git?

Yes, jj supports cherry-picking and amending commits like git. It provides direct equivalents for these version control actions, allowing you to amend changes seamlessly while relying on automatic change tracking instead of manual staging.

When should I not switch my team's workflow from git to jj?

You should not switch from git to jj if your team relies on highly specific Git hook configurations or commands lacking direct jj equivalents. While jj covers standard version control tasks, complex custom Git pipelines may require staying within native Git.