Back to list
martinemde

use-jj-not-git

by martinemde

✨ AI-first dotfiles with chezmoi

2🍴 0📅 Jan 20, 2026

SKILL.md


name: use-jj-not-git description: Guidance for using Jujutsu (jj) for version control. Use this skill when you would use git in order to make and edit commits properly, or for help to understand jj commands or concepts (working copy, changes, conflicts, operation log, bookmarks, revsets), troubleshoot jj issues, configure jj settings, understand jj workflows, translate Git commands to jj, or work with jj repositories. Also trigger when users mention "jujutsu", version control, or commits.

Jujutsu (jj) Commit Guide

Use jj instead of git for all version control operations.

Making Commits

No staging area - Files are automatically tracked. Just edit files and commit.

# Describe current change (like writing a commit message)
jj describe -m "Add feature X"

# Finalize current change and start a new empty one
jj commit -m "Add feature X"

# Start new change on top of current (like git commit without -a)
jj new -m "Next task"

# Start new change on main
jj new main -m "Start feature"

Key Differences from Git

  • @ = working copy (current change)
  • @- = parent of working copy
  • Changes auto-amend - editing files updates the current change
  • Use jj squash to move changes into parent (like git commit --amend)
  • Use jj squash -i for interactive selection

Quick Reference

TaskCommand
Set commit messagejj describe -m "message"
Finalize and continuejj commit -m "message"
Start new changejj new or jj new main
Amend into parentjj squash
View statusjj st
View logjj log
Push to remotejj git push --change @
Undo last operationjj undo

References

For detailed guidance, read references/ files:

  • git-to-jj-commands.md - Comprehensive Git → jj command mapping
  • git-comparison.md - Conceptual differences from Git
  • working-copy.md - How automatic commits work
  • bookmarks.md - Managing bookmarks (branches)
  • github.md - Fork workflows and PRs
  • conflicts.md - Conflict resolution
  • operation-log.md - Undo and operation history
  • revsets.md - Query syntax (@, @-, main..@, etc.)
  • config.md - Configuration options
  • tutorial.md - Step-by-step introduction
  • divergence.md - Handling divergent changes
  • multiple-remotes.md - Multi-remote setups
  • git-compatibility.md - Colocated repos and Git interop

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon