Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Basic Commands

If you thought of CRUD1, you nailed it! To manipulate the Changes of your history tree, you need:

OperationCommand
Createnew
Readshow
Updateedit
Deleteabandon

them.
Notice I wrote “Changes”, not “commits”. Jujutsu creates a different commit when you amend, referencing it with the same Change ID so treating it as the same thing. That thing is a Change:

“a commit as it evolves over time” — Glossary.

Beyond CRUD, you’ll also want to:

OperationCommand
Move a Changerebase
Move edits to another Changesquash
Copy files between Changesrestore
Display the history treelog
List / undo / redo operationsop log / undo / redo

That’s… basically it? Learn these and you master Jujutsu.

Macro Commands

Like in Git, some commands combine others:

OperationPossible command
Split a Change in 2split
Duplicate a Changeduplicate
Juggle Changes interactivelyarrange
Bisect (the best Git command)bisect
Magically distribute edits where they belongabsorb

I swear, the first two sets alone will take you further than Git ever did.

Open a terminal, grab your keyboard, and prepare to get your hands dirty.


  1. https://en.wikipedia.org/wiki/Create,_read,_update_and_delete