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

More advanced workflows

The workflows we’ve seen in jj are different from git in the best ways. As we get a bit more advanced, there are some very impressive possibilities yet to see. This section will also address an interesting aspect of interoperability between jj and git: what happens when you take the git repository out of sight.

Here’s what we’re going to learn:

  • Working on all your branches simultaneously
  • A pull request workflow called “Stacked PRs”
  • Copying a change to another branch with jj duplicate
  • Running formatters across a whole stack with jj fix
  • Running any command across a stack with jj run
  • Workspaces that let you have multiple local checkouts
  • The rules of working alongside git in the default colocated repository
  • Non-colocated repositories, and where the line between jj and git sits