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 just like Git's local branches. Here are the commands to use:

GoalJujutsu commandGit command
Listjj bookmark listgit 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: you can use a single letter for Bookmark-related commands. For example, instead of jj bookmark list, just jj b l will do.

Give these commands a try:

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