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

Commands

As long as there are no conflicts, you can treat Jujutsu’s local Bookmarks exactly like Git’s local branches.

GoalJujutsu command and its Git equivalent
Listjj bookmark list
git branch -v
Create newjj bookmark create <NAME>
git branch <NAME>
New or Updatejj bookmark set <NAME> -r <REV>
git branch -f <NAME> <REV>
Renamejj bookmark rename <OLD> <NEW>
git branch -m <OLD> <NEW>
Movejj bookmark move <NAME> --to <REV>
git branch -f <NAME> <REV>
Follow commitsjj bookmark advance <NAME> --to <REV>
Automatically performed by git commit
Delete locallyjj bookmark forget <NAME>
git branch -d <NAME>
Delete locally and remotelyjj bookmark delete <NAME>
git branch -d <NAME> +
git push <REMOTE> --delete <NAME>

Hint: Use a single letter for Bookmark commands. Instead of jj bookmark list, jj b l works perfectly.

Creating, moving and deleting local branches is trivial:

jj bookmark create my-branch -r x
jj bookmark set my-branch -r y
jj bookmark delete my-branch